/* ==========================================================================
   PERPUSDIGISARI - LUXURY REDESIGN LOGIN STYLE
   Identitas Visual:
   Navy: #071B33 | Navy Sekunder: #102B4E | Gold: #D6AD55 | Accent Blue: #2878D0
   ========================================================================== */

:root {
    --navy-primary: #071B33;
    --navy-secondary: #102B4E;
    --gold: #D6AD55;
    --gold-light: #F3E5AB;
    --accent-blue: #2878D0;
    --white: #FFFFFF;
    --text-dark: #152238;
    --text-muted: #64748B;
    --danger: #EF4444;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Plus Jakarta Sans', 'Poppins', sans-serif;
    min-height: 100vh;
    background-color: var(--navy-primary);
    background-image:
        radial-gradient(circle at 50% 20%, rgba(40, 120, 208, 0.25) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(214, 173, 85, 0.15) 0%, transparent 40%),
        linear-gradient(180deg, rgba(7, 27, 51, 0.85) 0%, rgba(16, 43, 78, 0.95) 100%),
        url('https://images.unsplash.com/photo-1507842217343-583bb7270b66?q=80&w=1600&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 20px;
    overflow-x: hidden;
}

/* TOP HEADER LOGO & TITLE */
.login-header-branding {
    text-align: center;
    margin-bottom: 24px;
    z-index: 10;
    animation: fadeInDown 0.8s ease;
}

.school-emblem-ring {
    width: 90px;
    height: 90px;
    margin: 0 auto 16px auto;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(214, 173, 85, 0.2) 0%, rgba(7, 27, 51, 0.8) 100%);
    border: 2px solid var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 25px rgba(214, 173, 85, 0.4), 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.4s ease;
}

.school-emblem-ring:hover {
    transform: scale(1.05) rotate(5deg);
}

.school-emblem-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4));
}

.login-header-branding h1 {
    font-size: 22px;
    font-weight: 800;
    color: var(--white);
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.login-header-branding p {
    font-size: 13px;
    font-weight: 600;
    color: var(--gold-light);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-top: 4px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

/* LOGIN CONTAINER CARD */
.login-wrapper {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 420px;
}

.login-card-luxury {
    background: #FFFFFF;
    border-radius: 24px;
    padding: 36px 32px;
    box-shadow: 0 25px 60px rgba(7, 27, 51, 0.6), 0 0 40px rgba(214, 173, 85, 0.15);
    color: var(--text-dark);
    text-align: center;
    position: relative;
}

.login-card-luxury h2 {
    font-size: 24px;
    font-weight: 800;
    color: var(--navy-primary);
    margin-bottom: 6px;
}

.login-card-luxury .login-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

/* ALERT MESSAGES */
.alert-box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: left;
}

.alert-box.error {
    background: #FEF2F2;
    border: 1px solid #FECACA;
    color: #DC2626;
}

/* FORM STYLES */
.login-form {
    text-align: left;
}

.input-group {
    margin-bottom: 18px;
}

.input-field {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 16px;
    color: var(--text-muted);
    font-size: 16px;
    transition: color 0.2s ease;
}

.input-field input {
    width: 100%;
    padding: 14px 44px 14px 46px;
    background: #F8FAFC;
    border: 1.5px solid #E2E8F0;
    border-radius: 14px;
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    transition: all 0.25s ease;
}

.input-field input:focus {
    outline: none;
    background: #FFFFFF;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 4px rgba(40, 120, 208, 0.15);
}

.input-field input:focus + .input-icon,
.input-field input:focus ~ .input-icon {
    color: var(--accent-blue);
}

.toggle-password {
    position: absolute;
    right: 16px;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 16px;
    transition: color 0.2s ease;
}

.toggle-password:hover {
    color: var(--navy-primary);
}

/* OPTIONS ROW (INGAT SAYA & LUPA PASSWORD) */
.login-options-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    margin-bottom: 20px;
}

.remember-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-dark);
    font-weight: 600;
    cursor: pointer;
}

.remember-checkbox input[type="checkbox"] {
    accent-color: var(--navy-primary);
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.forgot-link {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.forgot-link:hover {
    color: var(--navy-primary);
    text-decoration: underline;
}

/* PRIMARY SUBMIT BUTTON */
.btn-login-navy {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--navy-primary) 0%, var(--navy-secondary) 100%);
    border: none;
    border-radius: 14px;
    color: var(--gold-light);
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.5px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 20px rgba(7, 27, 51, 0.35);
    transition: all 0.25s ease;
}

.btn-login-navy:hover {
    background: linear-gradient(135deg, #0d284b 0%, #173d6d 100%);
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(7, 27, 51, 0.45);
}

.btn-login-navy:active {
    transform: translateY(1px);
    box-shadow: 0 4px 10px rgba(7, 27, 51, 0.3);
}

/* DIVIDER */
.divider-or {
    display: flex;
    align-items: center;
    margin: 22px 0;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
}

.divider-or::before,
.divider-or::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #E2E8F0;
}

.divider-or span {
    padding: 0 12px;
}

/* GOOGLE LOGIN BUTTON */
.btn-google-login {
    width: 100%;
    padding: 13px;
    background: #FFFFFF;
    border: 1.5px solid #E2E8F0;
    border-radius: 14px;
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: all 0.2s ease;
}

.btn-google-login:hover {
    background: #F8FAFC;
    border-color: #CBD5E1;
    transform: translateY(-1px);
}

.google-icon-svg {
    width: 18px;
    height: 18px;
}

/* FOOTER NOTE */
.login-card-footer {
    margin-top: 24px;
    font-size: 13px;
    color: var(--text-muted);
}

.login-card-footer a {
    color: var(--navy-primary);
    font-weight: 700;
    text-decoration: none;
}

.login-card-footer a:hover {
    text-decoration: underline;
}

/* ROLE TABS SELECTOR */
.login-role-tabs {
    display: flex;
    background: #F1F5F9;
    padding: 4px;
    border-radius: 14px;
    margin-bottom: 22px;
    gap: 4px;
}

.role-tab {
    flex: 1;
    padding: 10px 12px;
    border: none;
    background: transparent;
    border-radius: 10px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.role-tab:hover {
    color: var(--navy-primary);
}

.role-tab.active {
    background: var(--navy-primary);
    color: var(--gold-light);
    box-shadow: 0 4px 12px rgba(7, 27, 51, 0.2);
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
