:root {
    --bg-main: #f5f9ff;
    --bg-secondary: #e8f1ff;
    --ink-strong: #101b2d;
    --ink-soft: #607089;
    --line-soft: rgba(70, 96, 139, 0.18);
    --accent-cyan: #19bde6;
    --accent-blue: #2466f2;
    --accent-teal: #11b9a4;
    --card-white: rgba(255, 255, 255, 0.78);
    --card-white-strong: rgba(255, 255, 255, 0.92);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: 'DM Sans', sans-serif;
    background:
        radial-gradient(circle at 14% 20%, #d8efff 0%, transparent 44%),
        radial-gradient(circle at 82% 80%, #d2e8ff 0%, transparent 46%),
        linear-gradient(155deg, var(--bg-main), var(--bg-secondary));
    color: var(--ink-strong);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
    position: relative;
    overflow-x: hidden;
}

.background-grid {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(46, 88, 160, 0.08) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(46, 88, 160, 0.08) 1px, transparent 1px);
    background-size: 36px 36px;
    mask-image: radial-gradient(circle at center, black 46%, transparent 90%);
    pointer-events: none;
    z-index: 0;
}

.background-orb {
    position: fixed;
    border-radius: 999px;
    filter: blur(8px);
    pointer-events: none;
    z-index: 0;
    animation: floatOrb 9s ease-in-out infinite;
}

.orb-left {
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(25, 189, 230, 0.35), rgba(25, 189, 230, 0.05));
    top: 8%;
    left: -70px;
}

.orb-right {
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(36, 102, 242, 0.26), rgba(36, 102, 242, 0.05));
    bottom: -80px;
    right: -90px;
    animation-delay: 1.2s;
}

.login-container {
    width: min(1080px, 100%);
    min-height: 640px;
    background: linear-gradient(120deg, var(--card-white-strong), var(--card-white));
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 28px;
    box-shadow:
        0 30px 70px rgba(38, 64, 105, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    display: grid;
    grid-template-columns: minmax(320px, 43%) 1fr;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.login-sidebar {
    position: relative;
    background:
        radial-gradient(circle at 20% 24%, rgba(25, 189, 230, 0.28), transparent 52%),
        radial-gradient(circle at 88% 72%, rgba(17, 185, 164, 0.2), transparent 50%),
        linear-gradient(170deg, #10294f 0%, #1a3561 35%, #123b5f 100%);
    color: #f4f9ff;
    padding: 42px 36px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    isolation: isolate;
}

.login-sidebar::before {
    content: '';
    position: absolute;
    inset: 12px;
    border-radius: 22px;
    border: 1px solid rgba(138, 213, 255, 0.3);
    pointer-events: none;
    z-index: -1;
}

.brand-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #d9f8ff;
    border: 1px solid rgba(162, 227, 255, 0.45);
    background: rgba(9, 20, 42, 0.34);
    border-radius: 999px;
    padding: 8px 16px;
    margin-bottom: 26px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #62ffc5;
    box-shadow: 0 0 0 6px rgba(98, 255, 197, 0.18);
}

.login-logo {
    width: 100%;
    margin-bottom: 24px;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 22px;
    padding: 24px 20px;
    box-shadow: 0 16px 30px rgba(7, 20, 46, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.95);
}

.login-logo img {
    width: 100%;
    max-width: 320px;
    min-width: 170px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.login-hero-title {
    margin: 0;
    text-align: center;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.3rem, 2vw, 1.75rem);
    color: #f3faff;
    line-height: 1.2;
}

.login-text {
    margin: 14px 0 0;
    text-align: center;
    color: #d4e8ff;
    font-size: 0.98rem;
    line-height: 1.6;
    max-width: 350px;
}

.login-footer-note {
    margin-top: auto;
    width: 100%;
    color: #c6def7;
    font-size: 0.82rem;
    line-height: 1.45;
}

.eagle-link-footer {
    font-family: 'Sparose', sans-serif;
    font-size: 0.95rem;
    color: #ecf8ff;
    text-decoration: none;
}

.eagle-link-footer:hover {
    color: #9be8ff;
}

.login-form {
    position: relative;
    padding: 54px 52px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-title {
    margin: 0;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 2.5vw, 2.5rem);
    font-weight: 700;
    color: #12284d;
    letter-spacing: -0.02em;
}

.form-subtitle {
    margin: 8px 0 30px;
    color: var(--ink-soft);
    font-size: 1rem;
}

.form-label {
    color: #314460;
    font-size: 0.94rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.form-control {
    border-radius: 14px;
    border: 1px solid var(--line-soft);
    background: rgba(255, 255, 255, 0.84);
    color: #152540;
    padding: 14px 16px;
    font-size: 0.98rem;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.form-control::placeholder {
    color: #93a2bb;
}

.form-control:hover {
    border-color: rgba(36, 102, 242, 0.35);
}

.form-control:focus {
    border-color: rgba(36, 102, 242, 0.7);
    box-shadow: 0 0 0 4px rgba(36, 102, 242, 0.14);
    transform: translateY(-1px);
}

.input-group {
    border-radius: 14px;
    overflow: hidden;
}

.btn-toggle-pass {
    border: 1px solid var(--line-soft);
    border-left: none;
    background: rgba(255, 255, 255, 0.84);
    color: #38527b;
    padding-inline: 16px;
    border-radius: 0 14px 14px 0;
}

.btn-toggle-pass:hover {
    background: rgba(233, 242, 255, 0.92);
    color: #213f6f;
}

.custom-checkbox {
    width: 1.15rem;
    height: 1.15rem;
    border-radius: 6px;
    border: 1px solid rgba(47, 80, 128, 0.5);
    accent-color: #1d93de;
    margin-top: 0.2rem;
}

.remember-label {
    color: #395073;
    font-weight: 500;
    font-size: 0.95rem;
}

.btn-login {
    margin-top: 8px;
    width: 100%;
    border: none;
    border-radius: 14px;
    padding: 14px 26px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    letter-spacing: 0.01em;
    color: #f6fbff;
    background: linear-gradient(110deg, var(--accent-teal), var(--accent-cyan), var(--accent-blue));
    background-size: 170% 170%;
    box-shadow: 0 16px 30px rgba(18, 80, 164, 0.28);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    animation: neonShift 5.2s ease infinite;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 34px rgba(20, 85, 177, 0.35);
}

.btn-login:active {
    transform: translateY(0);
}

.error-message {
    color: #c94355;
    font-size: 0.86rem;
    margin-top: 8px;
    font-weight: 500;
}

.login-sidebar,
.login-form {
    animation: enterRise 0.7s ease both;
}

.login-form {
    animation-delay: 0.08s;
}

@keyframes enterRise {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floatOrb {
    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-14px);
    }
}

@keyframes neonShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@media (max-width: 992px) {
    body {
        padding: 18px;
    }

    .login-container {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .login-sidebar {
        padding: 30px 24px 24px;
    }

    .login-footer-note {
        margin-top: 22px;
    }

    .login-form {
        padding: 36px 28px 34px;
    }
}

@media (max-width: 576px) {
    body {
        padding: 12px;
    }

    .login-container {
        border-radius: 22px;
    }

    .login-sidebar {
        border-radius: 22px 22px 0 0;
    }

    .login-logo {
        padding: 18px 14px;
        border-radius: 16px;
    }

    .login-logo img {
        max-width: 260px;
        width: 100%;
    }

    .form-subtitle {
        margin-bottom: 24px;
    }
}