* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.auth-page {
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #eef2f7 0%, #dde3ed 100%);
    padding: 1.5rem;
    position: relative;
    overflow-x: hidden;
    color: #0a2647;
}

.bg-deco {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.bg-deco--1 {
    width: 45rem;
    height: 45rem;
    top: -15rem;
    right: -12rem;
    background: radial-gradient(circle, rgba(0, 102, 204, 0.06) 0%, transparent 70%);
}

.bg-deco--2 {
    width: 35rem;
    height: 35rem;
    bottom: -12rem;
    left: -10rem;
    background: radial-gradient(circle, rgba(255, 159, 28, 0.05) 0%, transparent 70%);
}

.bg-deco--3 {
    width: 22rem;
    height: 22rem;
    top: 25%;
    left: 5%;
    background: radial-gradient(circle, rgba(0, 200, 150, 0.04) 0%, transparent 70%);
}

.particle {
    position: fixed;
    border-radius: 50%;
    background: rgba(0, 102, 204, 0.08);
    pointer-events: none;
    z-index: 0;
    animation: particleFloat 22s infinite alternate ease-in-out;
}

.particle--1 { width: 80px; height: 80px; top: 12%; left: 6%; }
.particle--2 { width: 45px; height: 45px; bottom: 20%; right: 5%; animation-duration: 28s; background: rgba(255, 159, 28, 0.08); }
.particle--3 { width: 35px; height: 35px; top: 55%; left: 88%; animation-duration: 16s; background: rgba(0, 200, 150, 0.06); }

@keyframes particleFloat {
    0% { transform: translate(0, 0) scale(1); opacity: 0.2; }
    100% { transform: translate(70px, -90px) scale(1.3); opacity: 0.7; }
}

.login-card {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: row;
    max-width: 1000px;
    width: 100%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 12px;
    box-shadow: 0 30px 60px -20px rgba(0, 30, 60, 0.30),
                0 8px 24px -6px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.6);
    overflow: hidden;
}

.login-card--register {
    max-width: 1080px;
}

.login-illustration {
    flex: 1.1;
    padding: 2.5rem 2rem 2.5rem 2.5rem;
    background: linear-gradient(160deg, #ffffff 0%, #f2f6fe 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.college-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(0, 102, 204, 0.10);
    padding: 0.5rem 1.2rem 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #004080;
    border: 1px solid rgba(0, 102, 204, 0.15);
}

.college-badge i { font-size: 1rem; color: #0066cc; }

.illustration-box {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0.5rem 0;
}

.tech-icon {
    font-size: 7rem;
    color: #0066cc;
    filter: drop-shadow(0 8px 20px rgba(0, 102, 204, 0.20));
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-10px) scale(1.02); }
    100% { transform: translateY(0) scale(1); }
}

.illustration-text h2 {
    font-size: 1.9rem;
    font-weight: 700;
    color: #0a2647;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.illustration-text p {
    margin-top: 0.5rem;
    color: #3a5a7a;
    font-size: 1rem;
    max-width: 280px;
    opacity: 0.85;
    line-height: 1.5;
}

.feature-list {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: #1a3a5c;
    font-weight: 500;
    font-size: 0.95rem;
}

.feature-item i {
    width: 2rem;
    height: 2rem;
    background: rgba(0, 102, 204, 0.08);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0066cc;
    font-size: 1rem;
}

.login-form {
    flex: 0.9;
    padding: 2.5rem 2.5rem 2.5rem 2rem;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(4px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-height: 92vh;
    overflow-y: auto;
}

.login-card--register .login-form {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.form-header { margin-bottom: 1.6rem; }

.form-header h1 {
    font-size: 1.85rem;
    font-weight: 700;
    color: #0a2647;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-header h1 i { color: #0066cc; font-size: 1.7rem; }

.form-header .subhead {
    font-size: 0.92rem;
    color: #4a6a8a;
    margin-top: 0.35rem;
}

.auth-alert {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 500;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.auth-alert--error {
    background: #fff0f0;
    color: #a32020;
    border: 1px solid #f5c2c2;
}

.auth-alert--success {
    background: #eefbf3;
    color: #1a6640;
    border: 1px solid #b8e6cc;
}

.input-group {
    margin-bottom: 1.1rem;
    position: relative;
}

.input-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: #1a3a5c;
    margin-bottom: 0.35rem;
}

.input-group label i { color: #0066cc; margin-right: 4px; }

.input-row {
    display: grid;
    gap: 0.75rem;
}

.input-row--3 { grid-template-columns: repeat(3, 1fr); }
.input-row--2 { grid-template-columns: repeat(2, 1fr); }

.input-wrapper {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 8px;
    padding: 0.1rem 0.1rem 0.1rem 1.1rem;
    border: 1.5px solid #dce4ef;
    transition: border 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.01);
}

.input-wrapper:focus-within {
    border-color: #0066cc;
    box-shadow: 0 4px 16px rgba(0, 102, 204, 0.15);
}

.input-wrapper > i.field-icon {
    color: #8aa3c0;
    font-size: 1rem;
    margin-right: 0.7rem;
    flex-shrink: 0;
    transition: color 0.2s;
}

.input-wrapper:focus-within > i.field-icon { color: #0066cc; }

.input-wrapper input,
.input-wrapper select {
    width: 100%;
    border: none;
    outline: none;
    padding: 0.85rem 0.9rem 0.85rem 0;
    font-size: 0.92rem;
    font-weight: 500;
    background: transparent;
    color: #0a1e3c;
    font-family: 'Inter', sans-serif;
}

.input-wrapper select {
    cursor: pointer;
    padding-right: 0.5rem;
}

.input-wrapper input::placeholder { color: #b0c4dd; font-weight: 400; }

.input-optional {
    font-weight: 400;
    color: #8aa3c0;
    font-size: 0.78rem;
}

.password-toggle {
    background: transparent;
    border: none;
    padding: 0 0.8rem 0 0.4rem;
    cursor: pointer;
    color: #8aa3c0;
    font-size: 1rem;
    transition: color 0.2s;
}

.password-toggle:hover { color: #0066cc; }

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0.2rem 0 1.4rem;
}

.register-section {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.92rem;
    color: #3a5a7a;
}

.register-section a {
    color: #004080;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1.5px solid transparent;
    transition: border-color 0.2s;
}

.register-section a:hover { border-color: #004080; }

.btn-login {
    width: 100%;
    background: #004080;
    border: none;
    border-radius: 8px;
    padding: 0.95rem;
    font-size: 0.98rem;
    font-weight: 600;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 8px 20px -8px rgba(0, 64, 128, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-family: 'Inter', sans-serif;
}

.btn-login:hover {
    background: #003366;
    transform: scale(1.01);
    box-shadow: 0 12px 28px -10px rgba(0, 64, 128, 0.45);
}

.btn-login:active { transform: scale(0.97); }

.back-home {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: #4a6a8a;
    margin-bottom: 1rem;
    text-decoration: none;
    font-weight: 500;
}

.back-home:hover { color: #0066cc; }

@media (max-width: 900px) {
    .login-card,
    .login-card--register {
        flex-direction: column;
        max-width: 520px;
        border-radius: 12px;
    }

    .login-illustration {
        padding: 2rem 2rem 0.5rem;
        align-items: center;
        text-align: center;
    }

    .illustration-text p { max-width: 100%; }
    .feature-list { display: none; }
    .tech-icon { font-size: 5rem; }
    .login-form { padding: 1.8rem; max-height: none; }
    .input-row--3 { grid-template-columns: 1fr; }
    .input-row--2 { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
    body.auth-page { padding: 0.75rem; }
    .login-card { border-radius: 10px; }
    .login-form { padding: 1.4rem 1.2rem; }
    .form-header h1 { font-size: 1.55rem; }
}
