* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.login-page {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    min-height: 100dvh;
    overflow: hidden;
    caret-color: transparent;
}

body.login-page input {
    caret-color: auto;
}

.login-container {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 100dvh;
    padding: 3rem;
}

.login-bg {
    position: absolute;
    inset: 0;
    background: url('../images/assets/LakeOfKnowledge.png') center / cover no-repeat;
    z-index: 0;
}

.login-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(0, 20, 50, 0.7) 0%,
        rgba(0, 20, 50, 0.4) 50%,
        rgba(0, 20, 50, 0.25) 100%
    );
}

.login-brand {
    position: relative;
    z-index: 1;
    flex: 1;
    max-width: 480px;
    margin-left: auto;
    padding-left: 2rem;
    color: #fff;
}

.login-brand .brand-row {
    display: flex;
    align-items: baseline;
    gap: 1.5rem;
    margin-bottom: 1.25rem;
}

.login-brand .brand-logo {
    height: 45px;
    filter: brightness(0) invert(1);
    opacity: 0.9;
    flex-shrink: 0;
}

.login-brand .brand-heading {
    font-family: 'Wix Madefor Display';
    font-size: 3.25rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    line-height: 1;
    background: linear-gradient(180deg, #ffffff 0%, #c0c8d4 50%, #8a95a6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

.login-brand .brand-subtitle {
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 0.75rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.2);
}

.login-brand .brand-description {
    font-size: 0.925rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.6);
}

.login-card {
    position: relative;
    z-index: 1;
    margin-left: auto;
    width: 100%;
    max-width: 520px;
    padding: 3rem 3.25rem;
    background: rgba(10, 20, 45, 0.5);
    backdrop-filter: blur(24px) saturate(1.2);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
}

.login-card .card-heading {
    font-size: 1.75rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.375rem;
}

.login-card .card-subtitle {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 2rem;
    line-height: 1.5;
}

.login-error {
    background: rgba(229, 0, 0, 0.15);
    border: 1px solid rgba(229, 0, 0, 0.3);
    border-radius: 8px;
    padding: 0.65rem 1rem;
    margin-bottom: 1.25rem;
    font-size: 0.85rem;
    color: #ff8a8a;
}

.credentials-form {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.form-group label {
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.02em;
}

.form-group input {
    width: 100%;
    padding: 0.75rem 0.9rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: #fff;
    font-size: 0.9rem;
    font-family: inherit;
    transition: border-color 0.2s, background 0.2s;
    outline: none;
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.form-group input:focus {
    border-color: rgba(96, 165, 250, 0.6);
    background: rgba(255, 255, 255, 0.12);
}

.btn-signin {
    margin-top: 0.25rem;
    width: 100%;
    padding: 0.8rem;
    background: var(--blue-accent, #60a5fa);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: inherit;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-signin:hover {
    background: #4d94f7;
    box-shadow: 0 4px 16px rgba(96, 165, 250, 0.3);
}

/* Divider */
.login-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.8rem;
    letter-spacing: 0.05em;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.12);
}

.sso-form {
    display: flex;
    flex-direction: column;
}

.sso-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-decoration: none;
}

.sso-btn .sso-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.sso-btn-microsoft {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.sso-btn-microsoft:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

.sso-btn-microsoft:active {
    transform: translateY(0);
}

.card-footer {
    margin-top: 2.5rem;
    text-align: center;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.3);
}

@media (max-width: 900px) {
    .login-container {
        flex-direction: column;
        justify-content: center;
        padding: 2rem 1.5rem;
        gap: 2rem;
    }

    .login-bg::after {
        background: rgba(0, 20, 50, 0.6);
    }

    .login-brand {
        max-width: 100%;
        padding-left: 0;
        margin: 1rem 0;
        text-align: center;
    }

    .login-brand .brand-heading {
        font-size: 2.25rem;
    }

    .login-brand .brand-subtitle {
        font-size: 1rem;
    }

    .brand-blob {
        display: none;
    }

    .login-card {
        margin-left: 0;
        max-width: 480px;
    }
}

@media (max-width: 480px) {
    .login-container {
        padding: 1.5rem 1rem;
    }

    .login-brand .brand-logo {
        width: 56px;
        margin-bottom: 1rem;
    }

    .login-brand .brand-heading {
        font-size: 1.75rem;
    }

    .login-card {
        padding: 2rem 1.5rem;
    }
}