* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

:root {
    --primary: #082a4f;
    --primary-2: #0f3d72;
    --accent: #00b894;
    --accent-2: #00cec9;
    --white: #ffffff;
    --text: #102a43;
    --muted: #64748b;
    --border: rgba(148, 163, 184, .28);
    --danger: #dc2626;
    --shadow: 0 28px 80px rgba(8, 42, 79, .22);
}

html,
body {
    width: 100%;
    min-height: 100%;
}

body {
    min-height: 100vh;
    color: var(--text);
    overflow: hidden;
    background:
            radial-gradient(circle at 8% 12%, rgba(0, 206, 201, .28), transparent 32%),
            radial-gradient(circle at 88% 88%, rgba(0, 184, 148, .18), transparent 30%),
            linear-gradient(135deg, #061f3c 0%, #0d3764 48%, #f3f8fc 48%, #ffffff 100%);
}

.login-page {
    min-height: 100vh;
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 470px;
    align-items: center;
    gap: clamp(2rem, 5vw, 5rem);
    padding: clamp(1.5rem, 4vw, 4rem);
    position: relative;
}

.login-page::before,
.login-page::after {
    content: "";
    position: fixed;
    border-radius: 999px;
    pointer-events: none;
    filter: blur(2px);
}

.login-page::before {
    width: 380px;
    height: 380px;
    left: -120px;
    bottom: -120px;
    background: rgba(0, 206, 201, .18);
}

.login-page::after {
    width: 280px;
    height: 280px;
    right: -90px;
    top: -80px;
    background: rgba(255, 255, 255, .35);
}

.login-hero {
    max-width: 680px;
    color: white;
    position: relative;
    z-index: 1;
}

.hero-badge {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    padding: .75rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .13);
    border: 1px solid rgba(255, 255, 255, .22);
    backdrop-filter: blur(16px);
    font-weight: 800;
    font-size: .9rem;
    color: rgba(255, 255, 255, .9);
    margin-bottom: 1.4rem;
}

.hero-badge i {
    color: var(--accent-2);
}

.login-hero h2 {
    font-size: clamp(2.6rem, 6vw, 5.7rem);
    line-height: .95;
    letter-spacing: -.07em;
    font-weight: 950;
    max-width: 780px;
    text-shadow: 0 14px 35px rgba(0, 0, 0, .2);
}

.login-hero p {
    max-width: 570px;
    margin-top: 1.4rem;
    font-size: clamp(1rem, 1.6vw, 1.25rem);
    line-height: 1.65;
    color: rgba(255, 255, 255, .78);
    font-weight: 500;
}

.hero-dots {
    display: flex;
    gap: .7rem;
    margin-top: 2rem;
}

.hero-dots span {
    width: 46px;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .35);
}

.hero-dots span:first-child {
    background: var(--accent);
    width: 82px;
}

.login-card {
    width: 100%;
    min-height: 590px;
    position: relative;
    z-index: 1;
    border-radius: 36px;
    padding: 2.6rem 2.35rem 1.65rem;
    background: rgba(255, 255, 255, .92);
    border: 1px solid rgba(255, 255, 255, .72);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    overflow: hidden;
}

.login-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 7px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--primary-2));
}

.login-header {
    text-align: center;
    margin-bottom: 2.2rem;
}

.logo-box {
    width: 104px;
    height: 104px;
    margin: 0 auto 1rem;
    border-radius: 30px;
    background: linear-gradient(145deg, #ffffff, #edf7ff);
    border: 1px solid rgba(15, 61, 114, .08);
    box-shadow:
            0 18px 46px rgba(8, 42, 79, .18),
            inset 0 1px 0 rgba(255, 255, 255, .8);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.system-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.login-header h1 {
    font-size: 2.05rem;
    font-weight: 950;
    letter-spacing: .08em;
    color: var(--primary);
    line-height: 1;
}

.login-header .sub {
    margin-top: .55rem;
    color: var(--muted);
    font-size: .98rem;
    font-weight: 650;
}

.input-group {
    margin-bottom: 1.25rem;
    position: relative;
}

.input-group .input-icon {
    position: absolute;
    left: 19px;
    top: 50%;
    transform: translateY(-50%);
    color: #8495aa;
    font-size: 1.05rem;
    transition: color .2s ease;
    pointer-events: none;
}

.input-group input {
    width: 100%;
    height: 60px;
    padding: 0 1.15rem 0 3.25rem;
    border: 1.5px solid #d9e4ef;
    border-radius: 999px;
    font-size: 1rem;
    background: #ffffff;
    outline: none;
    transition: border-color .22s ease, box-shadow .22s ease, transform .22s ease;
    color: #102a43;
    font-weight: 600;
    box-shadow: 0 7px 18px rgba(8, 42, 79, .035);
}

.input-group input:focus {
    border-color: var(--primary-2);
    box-shadow: 0 0 0 5px rgba(15, 61, 114, .12);
    transform: translateY(-1px);
}

.input-group input:focus ~ .input-icon,
.input-group input:focus + .input-icon {
    color: var(--primary-2);
}

.input-group input::placeholder {
    color: #9bacbf;
    font-weight: 500;
}

.btn-login {
    width: 100%;
    height: 61px;
    margin-top: .35rem;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: white;
    font-size: 1.08rem;
    font-weight: 900;
    cursor: pointer;
    transition: transform .22s ease, box-shadow .22s ease, filter .22s ease;
    box-shadow: 0 14px 34px rgba(8, 42, 79, .28);
}

.btn-login span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .65rem;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 44px rgba(8, 42, 79, .34);
    filter: brightness(1.05);
}

.btn-login:active {
    transform: scale(.98);
}

.btn-login:disabled {
    opacity: .65;
    pointer-events: none;
    filter: grayscale(.25);
}

.spinner {
    display: inline-block;
    width: 22px;
    height: 22px;
    border: 3px solid rgba(255, 255, 255, .28);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: spin .75s linear infinite;
    margin-right: 6px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.error-area {
    margin-top: 1.15rem;
    min-height: 2.8rem;
    display: flex;
    align-items: center;
    padding: .45rem .8rem;
    border-radius: 24px;
    background: rgba(220, 38, 38, .03);
    border: 1px solid transparent;
    transition: all .2s ease;
}

.error-area:empty {
    display: none;
}

.error-area.error-active {
    border-color: rgba(220, 38, 38, .45);
    background: rgba(220, 38, 38, .07);
}

.error-area.error-active:empty {
    display: flex;
}

.error-message {
    color: #b91c1c;
    font-size: .9rem;
    font-weight: 650;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.error-message i {
    color: #b91c1c;
    min-width: 20px;
}

.login-footer {
    margin-top: 1.6rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(148, 163, 184, .22);
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    color: #7b8da3;
    font-size: .78rem;
    font-weight: 700;
}

@media (max-width: 980px) {
    body {
        overflow: auto;
        background:
                radial-gradient(circle at top left, rgba(0, 206, 201, .28), transparent 34%),
                linear-gradient(135deg, #071f3d 0%, #0b3766 42%, #eef6ff 42%, #f8fbff 100%);
    }

    .login-page {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .login-hero {
        text-align: center;
    }

    .login-hero p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-badge,
    .hero-dots {
        margin-left: auto;
        margin-right: auto;
        justify-content: center;
    }

    .login-card {
        max-width: 470px;
        min-height: auto;
    }
}

@media (max-width: 520px) {
    .login-page {
        padding: 1.1rem;
    }

    .login-hero {
        display: none;
    }

    .login-card {
        border-radius: 28px;
        padding: 2.25rem 1.45rem 1.35rem;
    }

    .logo-box {
        width: 88px;
        height: 88px;
        border-radius: 26px;
    }

    .login-header h1 {
        font-size: 1.65rem;
    }

    .input-group input,
    .btn-login {
        height: 56px;
    }

    .login-footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: .35rem;
    }
}
