@font-face {
    font-family: 'Manrope';
    src: url('/assets/fonts/Manrope/Manrope-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Manrope';
    src: url('/assets/fonts/Manrope/Manrope-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Manrope';
    src: url('/assets/fonts/Manrope/Manrope-ExtraBold.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
}

:root {
    --login-ink: #0f2742;
    --login-muted: #64748b;
    --login-border: rgba(15, 39, 66, 0.12);
    --login-panel: rgba(255, 255, 255, 0.92);
    --login-accent: #0f6cbd;
    --login-accent-deep: #123d70;
    --login-warm: #f59e0b;
    --login-success: #059669;
    --login-danger: #dc2626;
    --login-shadow: 0 32px 80px rgba(3, 19, 38, 0.24);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    font-family: 'Manrope', 'Segoe UI', sans-serif;
    color: var(--login-ink);
    background:
        radial-gradient(circle at top left, rgba(15, 108, 189, 0.3), transparent 32%),
        radial-gradient(circle at bottom right, rgba(245, 158, 11, 0.22), transparent 30%),
        linear-gradient(135deg, #071324 0%, #0a1d34 38%, #11355f 100%);
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        linear-gradient(190deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0) 30%),
        url('/assets/images/bg.png') center/cover no-repeat;
    opacity: 0.2;
    pointer-events: none;
}

body::after {
    content: '';
    position: fixed;
    left: 50%;
    bottom: -14rem;
    width: 34rem;
    height: 34rem;
    transform: translateX(-50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.12), transparent 60%);
    filter: blur(16px);
    pointer-events: none;
}

.login-shell {
    position: relative;
    z-index: 1;
    min-height: 70vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: clamp(18px, 4vw, 40px);
}

.login-scene {
    position: relative;
    overflow: hidden;
    align-items: flex-end;
    min-height: 680px;
    padding: clamp(32px, 5vw, 52px);
    border-radius: 36px;
    background: linear-gradient(155deg, rgba(8, 23, 42, 0.72) 0%, rgba(10, 30, 53, 0.9) 38%, rgba(18, 56, 96, 0.92) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 26px 60px rgba(0, 0, 0, 0.22);
}

.login-scene::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(15, 108, 189, 0.14), rgba(245, 158, 11, 0.06)),
        url('/assets/images/bg.png') center/cover no-repeat;
    opacity: 0.68;
    mix-blend-mode: screen;
    pointer-events: none;
}

.login-scene::after {
    content: '';
    position: absolute;
    inset: auto -8rem -7rem auto;
    width: 22rem;
    height: 22rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.36), rgba(245, 158, 11, 0) 66%);
    filter: blur(14px);
    pointer-events: none;
}

.scene-content {
    position: relative;
    z-index: 1;
    max-width: 39rem;
}

.scene-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.84);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
}

.scene-kicker::before {
    content: '';
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #7dd3fc, #fbbf24);
}

.login-scene h1 {
    margin-top: 1.35rem;
    color: #ffffff;
    font-size: clamp(2.4rem, 4.5vw, 4.4rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
    font-weight: 800;
    max-width: 12ch;
}

.login-scene p {
    margin-top: 1.1rem;
    max-width: 34rem;
    color: rgba(230, 238, 249, 0.78);
    font-size: 1.02rem;
    line-height: 1.75;
}

.login-scene .scene-title {
    margin-top: 1.2rem;
    color: #ffffff;
    font-size: clamp(2.2rem, 3.3vw, 3.7rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
    font-weight: 800;
    max-width: 50ch;
}

.login-scene .scene-lead {
    margin-top: 1rem;
    max-width: 100rem;
    color: rgba(230, 238, 249, 0.82);
    font-size: 1.02rem;
    line-height: 1.7;
}

/* Redesigned Left Scene Styles */
.scene-visual {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.scene-graphic {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.scene-brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 1rem;
}

.brand-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(15, 108, 189, 0.3), rgba(245, 158, 11, 0.2));
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.brand-icon svg {
    width: 20px;
    height: 20px;
}

.scene-kicker {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
}

.login-scene h1 {
    margin-top: 0;
}

.login-scene .scene-title {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.title-line {
    display: block;
    color: #ffffff;
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
    font-weight: 800;
}

.title-line.accent {
    background: linear-gradient(135deg, #0f6cbd 0%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-scene .scene-lead {
    margin-top: 1rem;
    max-width: 28rem;
    color: rgba(230, 238, 249, 0.78);
    font-size: 0.92rem;
    line-height: 1.7;
}

.scene-points {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.2rem;
}

.scene-point {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.7rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    backdrop-filter: blur(14px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.point-icon {
    width: 14px;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.point-icon svg {
    width: 100%;
    height: 100%;
}

.scene-stats {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-top: 1.4rem;
    padding: 0.65rem 0.9rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.stat-value {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.stat-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.stat-divider {
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, 0.15);
}

/* Responsive styles for redesigned scene */
@media (max-width: 767px) {
    .scene-brand {
        margin-bottom: 0.8rem;
    }
    
    .brand-icon {
        width: 28px;
        height: 28px;
    }
    
    .brand-icon svg {
        width: 16px;
        height: 16px;
    }
    
    .title-line {
        font-size: clamp(1.4rem, 6vw, 1.8rem);
    }
    
    .scene-points {
        margin-top: 1rem;
    }
    
    .scene-point {
        padding: 0.35rem 0.55rem;
        font-size: 0.6rem;
    }
    
    .scene-stats {
        flex-wrap: wrap;
        gap: 0.5rem;
        padding: 0.5rem 0.7rem;
    }
    
    .stat-item {
        min-width: calc(33% - 0.4rem);
    }
    
    .stat-value {
        font-size: 0.85rem;
    }
    
    .stat-divider {
        display: none;
    }
}

.scene-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 2rem;
}

.scene-metric {
    min-width: 18rem;
    padding: 1.95rem 3rem;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.06));
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.scene-metric strong {
    display: block;
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 800;
}

.scene-metric span {
    display: block;
    margin-top: 0.25rem;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

@media (max-width: 1499px) {
    .login-shell {
        grid-template-columns: 1fr;
    }

    .login-scene {
        display: none;
    }
}

.login-container {
    width: 100%;
    max-width: 560px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    position: relative;
    width: min(100%, 560px);
    padding: clamp(28px, 4vw, 42px);
    border-radius: 34px;
    background: var(--login-panel);
    border: 1px solid rgba(255, 255, 255, 0.44);
    box-shadow: var(--login-shadow);
    backdrop-filter: blur(20px);
    overflow: hidden;
    animation: card-rise 0.6s ease both;
}

.login-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 5px;
    background: linear-gradient(90deg, #0f6cbd 0%, #2f88d9 38%, #f59e0b 100%);
}

.login-card::after {
    content: '';
    position: absolute;
    top: -7rem;
    right: -6rem;
    width: 14rem;
    height: 14rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(15, 108, 189, 0.18), rgba(15, 108, 189, 0) 68%);
}

.login-header,
.login-trustbar,
.auth-body,
.success-message {
    position: relative;
    z-index: 1;
}

.login-header {
    margin-bottom: 1.4rem;
}

.login-brand-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.4rem;
}

.company-logo {
    width: 78px;
    height: 78px;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(15, 108, 189, 0.14), rgba(18, 61, 112, 0.2));
    border: 1px solid rgba(15, 108, 189, 0.14);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.logo-img {
    display: block;
    width: 58px;
    height: 58px;
    border-radius: 18px;
    object-fit: contain;
    background: transparent;
    padding: 0;
    box-shadow: none;
}

.security-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.6rem 0.95rem;
    border-radius: 999px;
    background: rgba(15, 108, 189, 0.08);
    border: 1px solid rgba(15, 108, 189, 0.14);
    color: var(--login-accent-deep);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.login-header h2 {
    color: var(--login-ink);
    font-size: clamp(2rem, 4vw, 1.65rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
    font-weight: 800;
}

.login-header p {
    margin-top: 0.8rem;
    color: #61748c;
    font-size: 0.98rem;
    line-height: 1.7;
    max-width: 30rem;
}

.login-trustbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-bottom: 1.45rem;
}

.trust-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.48rem 0.8rem;
    border-radius: 999px;
    background: #f3f7fb;
    border: 1px solid rgba(15, 39, 66, 0.08);
    color: #506579;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.auth-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    position: relative;
    margin: 0;
}

.input-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
}

.input-wrapper input {
    width: 100%;
    min-height: 60px;
    padding: 1.35rem 1rem 0.55rem;
    background: linear-gradient(180deg, #f8fbfe 0%, #f4f7fb 100%);
    border: 1px solid rgba(15, 39, 66, 0.1);
    border-radius: 20px;
    color: #10253f;
    font: inherit;
    font-size: 0.96rem;
    font-weight: 600;
    outline: none;
    transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.input-wrapper input:hover {
    border-color: rgba(15, 108, 189, 0.16);
}

.input-wrapper input:focus {
    transform: translateY(-1px);
}

.input-wrapper input:focus,
.input-wrapper input:not(:placeholder-shown) {
    background: #ffffff;
    border-color: rgba(15, 108, 189, 0.24);
    box-shadow: 0 0 0 4px rgba(15, 108, 189, 0.08), 0 16px 30px rgba(15, 39, 66, 0.08);
}

.input-wrapper label {
    position: absolute;
    left: 1rem;
    top: 1.1rem;
    color: #708195;
    font-size: 0.96rem;
    font-weight: 600;
    pointer-events: none;
    transition: transform 0.18s ease, color 0.18s ease, font-size 0.18s ease, background-color 0.18s ease;
    transform-origin: left top;
}

.input-wrapper input:focus + label,
.input-wrapper input:not(:placeholder-shown) + label {
    transform: translateY(-0.85rem) scale(0.82);
    color: var(--login-accent);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.96));
    padding: 0 0.45rem;
    border-radius: 999px;
    font-weight: 800;
}

.input-wrapper input::placeholder {
    color: transparent;
}

.input-wrapper input:-webkit-autofill,
.input-wrapper input:-webkit-autofill:hover,
.input-wrapper input:-webkit-autofill:focus {
    -webkit-text-fill-color: #10253f;
    box-shadow: 0 0 0 1000px #ffffff inset;
    transition: background-color 9999s ease-out 0s;
}

.input-border {
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 0;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, #0f6cbd, #2f88d9, #f59e0b);
    opacity: 0;
    transform: scaleX(0.3);
    transform-origin: left center;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.input-wrapper input:focus ~ .input-border,
.input-wrapper input:not(:placeholder-shown) ~ .input-border {
    opacity: 1;
    transform: scaleX(1);
}

.password-wrapper input {
    padding-right: 3.6rem;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 0.85rem;
    width: 2.4rem;
    height: 2.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 14px;
    background: transparent;
    cursor: pointer;
    z-index: 2;
    transform: translateY(-50%);
    transition: background-color 0.18s ease, transform 0.18s ease;
}

.password-toggle:hover {
    background: rgba(15, 108, 189, 0.08);
    transform: translateY(-50%) scale(1.02);
}

.toggle-icon {
    display: block;
    width: 18px;
    height: 18px;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b' stroke-width='1.5'%3e%3cpath stroke-linecap='round' stroke-linejoin='round' d='M15 12a3 3 0 11-6 0 3 3 0 016 0z'/%3e%3cpath stroke-linecap='round' stroke-linejoin='round' d='M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z'/%3e%3c/svg%3e");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: background-image 0.18s ease;
}

.password-toggle:hover .toggle-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%230f6cbd' stroke-width='1.5'%3e%3cpath stroke-linecap='round' stroke-linejoin='round' d='M15 12a3 3 0 11-6 0 3 3 0 016 0z'/%3e%3cpath stroke-linecap='round' stroke-linejoin='round' d='M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z'/%3e%3c/svg%3e");
}

.toggle-icon.show-password {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b' stroke-width='1.5'%3e%3cpath stroke-linecap='round' stroke-linejoin='round' d='M3.98 8.223A10.477 10.477 0 001.934 12C3.226 16.338 7.244 19.5 12 19.5c.993 0 1.953-.138 2.863-.395M6.228 6.228A10.45 10.45 0 0112 4.5c4.756 0 8.773 3.162 10.065 7.498a10.523 10.523 0 01-4.293 5.774M6.228 6.228L3 3m3.228 3.228l3.65 3.65m7.894 7.894L21 21m-3.228-3.228l-3.65-3.65m0 0a3 3 0 11-4.243-4.243m4.242 4.242L9.88 9.88'/%3e%3c/svg%3e");
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.8rem 1rem;
    flex-wrap: wrap;
    margin-top: 0.15rem;
}

.remember-wrapper {
    display: flex;
    align-items: center;
}

.remember-wrapper input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: #4b6176;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
}

.checkbox-custom {
    width: 1.15rem;
    height: 1.15rem;
    flex-shrink: 0;
    border: 1.6px solid rgba(15, 39, 66, 0.18);
    border-radius: 6px;
    background: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.18s ease, background-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.remember-wrapper input[type="checkbox"]:checked + .checkbox-label .checkbox-custom {
    background: var(--login-accent);
    border-color: var(--login-accent);
    transform: scale(1.03);
    box-shadow: 0 10px 18px rgba(15, 108, 189, 0.2);
}

.remember-wrapper input[type="checkbox"]:checked + .checkbox-label .checkbox-custom::after {
    content: '✓';
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 800;
}

.forgot-password {
    color: var(--login-accent);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 700;
    transition: color 0.18s ease;
}

.forgot-password:hover {
    color: var(--login-accent-deep);
}

.login-btn {
    width: 100%;
    min-height: 58px;
    border: 0;
    border-radius: 20px;
    background: linear-gradient(135deg, #0f6cbd 0%, #153f73 64%, #f59e0b 150%);
    color: #ffffff;
    font: inherit;
    font-size: 0.86rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 18px 34px rgba(15, 108, 189, 0.22);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.login-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0) 42%);
    transform: translateX(-100%);
    transition: transform 0.35s ease;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 38px rgba(15, 108, 189, 0.28);
}

.login-btn:hover::before {
    transform: translateX(0);
}

.login-btn:active {
    transform: translateY(0);
}

.login-btn.loading {
    pointer-events: none;
    filter: saturate(0.65);
}

.btn-text {
    position: relative;
    z-index: 1;
    transition: opacity 0.2s ease;
}

.btn-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 18px;
    border: 2px solid transparent;
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    animation: spin 1s linear infinite;
    transition: opacity 0.2s ease;
}

.login-btn.loading .btn-text {
    opacity: 0;
}

.login-btn.loading .btn-loader {
    opacity: 1;
}

.auth-assistance {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    border-radius: 20px;
    background: linear-gradient(180deg, #f3f8fd 0%, #f8fbff 100%);
    border: 1px solid rgba(15, 39, 66, 0.07);
}

.auth-assistance strong {
    display: block;
    color: var(--login-accent-deep);
    font-size: 0.9rem;
    font-weight: 800;
}

.auth-assistance p {
    margin-top: 0.25rem;
    color: #607388;
    font-size: 0.86rem;
    line-height: 1.6;
}

.auth-assistance__pill {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.7rem;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid rgba(15, 108, 189, 0.12);
    color: var(--login-accent);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: 0 8px 16px rgba(15, 39, 66, 0.06);
}

.divider {
    position: relative;
    text-align: center;
    margin: 0.25rem 0;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(148, 163, 184, 0), rgba(148, 163, 184, 0.55), rgba(148, 163, 184, 0));
    transform: translateY(-50%);
}

.divider span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    min-height: 2rem;
    padding: 0.32rem 0.95rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 10px 18px rgba(15, 39, 66, 0.05);
    color: #7a899c;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.sso-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sso-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    min-height: 54px;
    padding: 0.95rem 1.1rem;
    border-radius: 18px;
    border: 1px solid rgba(15, 39, 66, 0.08);
    background: #ffffff;
    color: #143456;
    font: inherit;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(15, 39, 66, 0.06);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.sso-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(15, 108, 189, 0.16);
    box-shadow: 0 16px 30px rgba(15, 39, 66, 0.1);
    background: #fcfdff;
}

.sso-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    flex: 0 0 auto;
    line-height: 0;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.sso-icon svg {
    display: block;
    width: 100%;
    height: 100%;
}

.microsoft-icon {
    filter: drop-shadow(0 4px 8px rgba(15, 39, 66, 0.08));
}

.okta-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3e%3cpath fill='%2300297a' d='M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm0 16c-3.314 0-6-2.686-6-6s2.686-6 6-6 6 2.686 6 6-2.686 6-6 6z'/%3e%3c/svg%3e");
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem;
    padding-top: 0.9rem;
    border-top: 1px solid rgba(148, 163, 184, 0.22);
}

.footer-link {
    color: var(--login-muted);
    text-decoration: none;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color 0.18s ease;
}

.footer-link:hover {
    color: var(--login-accent);
}

.separator {
    color: #c0c8d4;
    font-size: 0.72rem;
}

.error-message {
    display: block;
    min-height: 0;
    margin-top: 0.5rem;
    padding: 0 0.25rem;
    color: var(--login-danger);
    font-size: 0.8rem;
    font-weight: 700;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.error-message.show {
    opacity: 1;
    transform: translateY(0);
}

.form-group.error .input-wrapper input {
    border-color: rgba(220, 38, 38, 0.36);
    background: #fff5f5;
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.08);
}

.form-group.error .input-wrapper label {
    color: var(--login-danger);
}

.form-group.error .input-border {
    opacity: 1;
    transform: scaleX(1);
    background: linear-gradient(90deg, #dc2626, #f87171);
}

.success-message {
    display: none;
    padding: 1.5rem 0 0.25rem;
    text-align: center;
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.28s ease, transform 0.28s ease;
}

.success-message.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.success-icon {
    width: 68px;
    height: 68px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 22px;
    background: linear-gradient(135deg, var(--login-success), #10b981);
    color: #ffffff;
    font-size: 1.5rem;
    box-shadow: 0 18px 30px rgba(5, 150, 105, 0.25);
}

.success-message h3 {
    color: var(--login-ink);
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.success-message p {
    margin-top: 0.55rem;
    color: var(--login-muted);
    font-size: 0.95rem;
}

@keyframes spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes card-rise {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1100px) {
    .login-shell {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .login-scene {
        min-height: auto;
    }

    .scene-content {
        max-width: none;
    }

    .scene-acronym {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .login-container {
        align-items: flex-start;
    }
}

@media (max-width: 767px) {
    body::after {
        width: 22rem;
        height: 22rem;
        bottom: -9rem;
    }

    .login-shell {
        padding: 14px;
        gap: 14px;
    }

    .login-scene {
        padding: 24px;
        border-radius: 28px;
    }

    .login-scene h1 {
        max-width: none;
        font-size: clamp(2rem, 10vw, 3rem);
    }

    .scene-grid {
        grid-template-columns: 1fr;
    }

    .scene-acronym {
        grid-template-columns: 1fr;
    }

    .scene-metrics {
        gap: 0.65rem;
    }

    .scene-metric {
        min-width: calc(50% - 0.4rem);
        flex: 1 1 9rem;
    }

    .login-card {
        padding: 24px;
        border-radius: 28px;
    }

    .login-brand-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .login-trustbar {
        margin-bottom: 1.2rem;
    }

    .form-options {
        flex-direction: column;
        align-items: flex-start;
    }

    .auth-assistance {
        flex-direction: column;
    }

    .footer-links {
        gap: 0.7rem;
    }

    .separator {
        display: none;
    }
}

@media (max-width: 480px) {
    .company-logo {
        width: 68px;
        height: 68px;
    }

    .logo-img {
        width: 50px;
        height: 50px;
    }

    .security-pill {
        font-size: 0.68rem;
    }

    .login-header p {
        font-size: 0.92rem;
    }

    .input-wrapper input {
        min-height: 56px;
    }

    .login-btn {
        min-height: 54px;
        letter-spacing: 0.1em;
    }

    .sso-btn {
        font-size: 0.88rem;
        padding: 0.9rem 0.95rem;
    }
}