﻿:root {
    --brand-900: #00567f;
    --brand-800: #006699;
    --brand-700: #1f7fb3;
    --brand-600: #3399CC;
    --brand-500: #66b8dd;
    --brand-200: #dff2fb;
    --brand-100: #eef8fd;
    --accent-red: #ED2024;
    --accent-red-soft: rgba(237, 32, 36, 0.10);
    --ink-900: #0f172a;
    --ink-800: #1e293b;
    --ink-700: #334155;
    --ink-600: #475569;
    --ink-500: #64748b;
    --line: #d7e5ef;
    --white: #ffffff;
    --bg-main: #f3f9fc;
    --bg-soft: #edf6fb;
    --radius-xl: 30px;
    --radius-lg: 22px;
    --radius-md: 16px;
    --radius-sm: 12px;
    --shadow-lg: 0 24px 60px rgba(0, 102, 153, 0.16);
    --shadow-md: 0 14px 30px rgba(0, 102, 153, 0.12);
    --shadow-sm: 0 8px 18px rgba(15, 23, 42, 0.06);
    --fast: .16s ease;
    --normal: .24s ease;
}

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    font-family: 'Be Vietnam Pro', sans-serif;
    color: var(--ink-800);
    background: radial-gradient(circle at top left, rgba(51, 153, 204, 0.20), transparent 30%), radial-gradient(circle at bottom right, rgba(0, 102, 153, 0.16), transparent 26%), linear-gradient(135deg, #f8fbfd 0%, #eef6fb 52%, #e8f2f8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

    body::before,
    body::after {
        content: "";
        position: absolute;
        border-radius: 50%;
        pointer-events: none;
        filter: blur(2px);
    }

    body::before {
        width: 360px;
        height: 360px;
        top: -120px;
        left: -100px;
        background: radial-gradient(circle, rgba(51, 153, 204, 0.22), transparent 68%);
    }

    body::after {
        width: 420px;
        height: 420px;
        right: -120px;
        bottom: -140px;
        background: radial-gradient(circle, rgba(0, 102, 153, 0.24), transparent 70%);
    }

.login-scene {
    width: 100%;
    max-width: 1300px;
    padding: 28px;
    position: relative;
    z-index: 2;
}

.login-shell {
    display: grid;
    grid-template-columns: 1.06fr .94fr;
    min-height: 690px;
    border-radius: 34px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, .88);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(10px);
}

.login-hero {
    position: relative;
    background: linear-gradient(180deg, rgba(0, 102, 153, 0.06), rgba(51, 153, 204, 0.08)), linear-gradient(135deg, #f5fbfe 0%, #e6f2f9 100%);
    padding: 52px 46px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

    .login-hero::before {
        content: "";
        position: absolute;
        width: 320px;
        height: 320px;
        border-radius: 50%;
        top: -110px;
        right: -90px;
        background: radial-gradient(circle, rgba(0,102,153,.16), transparent 70%);
    }

    .login-hero::after {
        content: "";
        position: absolute;
        width: 240px;
        height: 240px;
        border-radius: 50%;
        bottom: -80px;
        left: -60px;
        background: radial-gradient(circle, rgba(51,153,204,.20), transparent 68%);
    }

.hero-top,
.hero-bottom {
    position: relative;
    z-index: 2;
}

.brand-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255,255,255,.82);
    border: 1px solid rgba(0,102,153,.12);
    color: var(--brand-800);
    font-size: .92rem;
    font-weight: 700;
    margin-bottom: 26px;
    box-shadow: var(--shadow-sm);
}

    .brand-chip i {
        color: var(--accent-red);
    }

.hero-title {
    font-size: clamp(2.3rem, 4vw, 4rem);
    line-height: 1.08;
    font-weight: 800;
    color: var(--ink-900);
    margin: 0 0 14px;
    letter-spacing: -0.02em;
}

    .hero-title .accent {
        color: var(--brand-800);
    }

.hero-subtitle {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--ink-600);
    max-width: 560px;
    margin-bottom: 30px;
}

.hero-points {
    display: grid;
    gap: 14px;
    max-width: 540px;
}

.hero-point {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 20px;
    background: rgba(255,255,255,.78);
    border: 1px solid rgba(0,102,153,.08);
    box-shadow: var(--shadow-sm);
}

    .hero-point .icon-box {
        width: 42px;
        height: 42px;
        border-radius: 14px;
        background: linear-gradient(135deg, var(--brand-100), #fafdff);
        color: var(--brand-800);
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        font-size: 1rem;
    }

    .hero-point strong {
        display: block;
        font-size: .96rem;
        color: var(--ink-900);
        margin-bottom: 4px;
    }

    .hero-point span {
        display: block;
        font-size: .89rem;
        line-height: 1.7;
        color: var(--ink-600);
    }

.hero-footer {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--ink-500);
    font-size: .9rem;
    font-weight: 600;
}

    .hero-footer .line {
        width: 54px;
        height: 1px;
        background: linear-gradient(90deg, var(--brand-600), transparent);
    }

.login-panel {
    background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(255,255,255,.99));
    padding: 44px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    width: 100%;
    max-width: 430px;
    animation: riseIn .42s ease;
}

.login-logo-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.login-logo {
    width: 102px;
    height: 102px;
    object-fit: contain;
    border-radius: 24px;
    background: #fff;
    padding: 12px;
    box-shadow: 0 16px 32px rgba(0,102,153,0.12);
    border: 1px solid rgba(0,102,153,0.08);
}

.login-heading {
    text-align: center;
    margin-bottom: 30px;
}

.login-badge {
    display: inline-block;
    margin-bottom: 14px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(0,102,153,.09);
    color: var(--brand-800);
    font-weight: 700;
    font-size: .84rem;
    border: 1px solid rgba(0,102,153,.12);
}

.login-heading h2 {
    font-size: 1.85rem;
    line-height: 1.2;
    font-weight: 800;
    color: var(--ink-900);
    margin-bottom: 8px;
}

.login-heading p {
    margin: 0;
    color: var(--ink-500);
    font-size: .95rem;
    line-height: 1.75;
}

.form-label-custom {
    display: block;
    margin-bottom: 8px;
    font-size: .92rem;
    font-weight: 700;
    color: var(--ink-700);
}

.input-wrap {
    position: relative;
    margin-bottom: 18px;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--brand-800);
    font-size: .95rem;
    pointer-events: none;
    z-index: 3;
}

.form-control.haitam-input {
    height: 56px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: #fcfeff;
    padding-left: 46px;
    padding-right: 16px;
    font-size: .96rem;
    font-weight: 600;
    color: var(--ink-800);
    box-shadow: none;
    transition: border-color var(--fast), box-shadow var(--fast), background var(--fast);
}

    .form-control.haitam-input::placeholder {
        color: #94a3b8;
        font-weight: 500;
    }

    .form-control.haitam-input:focus {
        border-color: rgba(0,102,153,.40);
        box-shadow: 0 0 0 4px rgba(51,153,204,.12);
        background: #fff;
    }

.password-group {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--brand-800);
    transition: background var(--fast), color var(--fast);
    z-index: 4;
}

    .toggle-password:hover {
        background: rgba(0,102,153,.08);
        color: var(--brand-700);
    }

.form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 6px 0 22px;
    flex-wrap: wrap;
}

.form-check-label {
    color: var(--ink-500);
    font-size: .92rem;
    user-select: none;
}

.form-check-input {
    border-color: #b7cfde;
}

    .form-check-input:checked {
        background-color: var(--brand-800);
        border-color: var(--brand-800);
    }

.support-link {
    color: var(--brand-800);
    font-size: .9rem;
    font-weight: 700;
    text-decoration: none;
}

    .support-link:hover {
        color: var(--accent-red);
    }

.btn-login {
    height: 56px;
    width: 100%;
    border: none;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--brand-800), var(--brand-600));
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: .2px;
    box-shadow: var(--shadow-md);
    transition: transform var(--fast), filter var(--fast), box-shadow var(--fast);
}

    .btn-login:hover {
        transform: translateY(-1px);
        filter: brightness(1.01);
        box-shadow: 0 18px 34px rgba(0,102,153,0.18);
        color: #fff;
    }

    .btn-login:active {
        transform: translateY(0);
    }

.login-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 22px 0 6px;
    color: var(--brand-800);
    font-size: .82rem;
    font-weight: 700;
    justify-content: center;
}

    .login-divider::before,
    .login-divider::after {
        content: "";
        width: 44px;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(0,102,153,.34), transparent);
    }

.login-note {
    text-align: center;
    margin-top: 18px;
    font-size: .83rem;
    line-height: 1.7;
    color: var(--ink-500);
}

    .login-note strong {
        color: var(--accent-red);
    }

@keyframes riseIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 991.98px) {
    body {
        overflow-y: auto;
    }

    .login-shell {
        grid-template-columns: 1fr;
        max-width: 580px;
        margin: 0 auto;
    }

    .login-hero {
        padding: 30px 26px;
        min-height: 300px;
    }

    .hero-subtitle,
    .hero-points {
        max-width: 100%;
    }

    .login-panel {
        padding: 34px 24px;
    }
}

@media (max-width: 575.98px) {
    .login-scene {
        padding: 14px;
        min-height: 100%;
        display: flex;
        align-items: center;
    }

    .login-shell {
        border-radius: 24px;
    }

    .login-hero {
        padding: 24px 20px;
    }

    .login-panel {
        padding: 26px 18px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .login-heading h2 {
        font-size: 1.55rem;
    }

    .form-actions {
        flex-direction: column;
        align-items: flex-start;
    }
}
