:root {
    --navy: #0a2540;
    --navy-mid: #1a5f7a;
    --teal: #32a8a0;
    --teal-light: #5ec9c1;
    --bg-light: #f4f7fb;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --gradient-dark: linear-gradient(145deg, #0a2540 0%, #123d5c 45%, #1a6b78 100%);
    --gradient-btn: linear-gradient(90deg, #0a2540, #32a8a0);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body.login-page {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

body.login-page {
    font-family: 'Inter', sans-serif;
    background: var(--bg-light);
}

.login-split {
    display: flex;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
}

.login-panel {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 32px;
    overflow: hidden;
    min-height: 0;
}

.login-panel-inner {
    width: 100%;
    position: relative;
    z-index: 2;
}

/* Left — login (light) */

.login-panel-login {
    background: var(--bg-light);
    background-image: radial-gradient(circle at 80% 20%, rgba(50, 168, 160, 0.08) 0%, transparent 45%),
                      radial-gradient(circle at 10% 80%, rgba(10, 37, 64, 0.05) 0%, transparent 40%);
}

.login-form-wrap {
    max-width: 400px;
}

.login-form-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--teal);
    margin-bottom: 4px;
}

.login-form-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 4px;
}

.login-form-sub {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 18px;
}

.login-form .input-group {
    margin-bottom: 12px;
}

.login-form .input-group label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.login-form .input-group input {
    width: 100%;
    height: 42px;
    border: 1px solid #d1dbe8;
    border-radius: 10px;
    padding: 0 14px;
    font-size: 14px;
    font-family: inherit;
    background: #fff;
    color: var(--text-dark);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.login-form .input-group input::placeholder {
    color: #94a3b8;
}

.login-form .input-group input:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(50, 168, 160, 0.15);
}

.captcha-box {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.captcha-img {
    height: 42px;
    border-radius: 10px;
    border: 1px solid #d1dbe8;
}

.refresh-btn {
    width: 42px;
    height: 42px;
    border: 1px solid #d1dbe8;
    border-radius: 10px;
    background: #fff;
    color: var(--navy);
    cursor: pointer;
    font-size: 15px;
    transition: 0.2s;
}

.refresh-btn:hover {
    background: rgba(50, 168, 160, 0.1);
    border-color: var(--teal);
    color: var(--teal);
}

.login-btn {
    width: auto;
    min-width: 140px;
    height: 38px;
    padding: 0 22px;
    border: none;
    border-radius: 8px;
    background: var(--gradient-btn);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 4px;
}

.login-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(50, 168, 160, 0.35);
}

.error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    padding: 10px;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 12px;
    font-size: 12px;
}

.login-panel-login .footer-text {
    text-align: center;
    margin-top: 16px;
    color: var(--text-muted);
    font-size: 11px;
}

/* Right — info (dark) */

.login-panel-info {
    background: var(--gradient-dark);
}

.login-panel-glow {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.login-panel-glow-1 {
    width: 340px;
    height: 340px;
    top: -100px;
    left: -60px;
    background: rgba(50, 168, 160, 0.15);
}

.login-panel-glow-2 {
    width: 260px;
    height: 260px;
    bottom: -50px;
    right: -30px;
    background: rgba(255, 255, 255, 0.04);
}

.login-info-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    width: 100%;
    max-width: 820px;
    position: relative;
    z-index: 2;
}

.login-info-main {
    max-width: 380px;
    flex: 1;
}

.login-hero-image {
    width: 100%;
    max-height: 140px;
    margin-bottom: 14px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
}

.login-hero-image img {
    display: block;
    width: 100%;
    height: 140px;
    object-fit: cover;
    object-position: center;
}

.login-brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(50, 168, 160, 0.2);
    color: var(--teal-light);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.06em;
    margin-bottom: 12px;
}

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22c55e;
}

.login-hero-title {
    font-size: clamp(22px, 2.5vw, 30px);
    font-weight: 700;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 8px;
}

.text-teal {
    color: var(--teal-light);
}

.login-hero-sub {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.45;
    margin-bottom: 14px;
}

.login-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.login-tags span {
    padding: 6px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    font-weight: 500;
}

.login-modules {
    width: 100%;
    max-width: 300px;
    flex-shrink: 0;
}

.login-modules-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--teal-light);
    margin-bottom: 4px;
}

.login-modules-title {
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}

.login-module-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    margin-bottom: 8px;
}

.login-module-card:last-child {
    margin-bottom: 0;
}

.login-module-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(50, 168, 160, 0.2);
    border: 1px solid rgba(50, 168, 160, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--teal-light);
    font-size: 14px;
    flex-shrink: 0;
}

.login-module-card strong {
    display: block;
    color: #fff;
    font-size: 13px;
    margin-bottom: 1px;
}

.login-module-card span {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.55);
}

@media (max-width: 1100px) {
    .login-info-content {
        flex-direction: column;
        gap: 20px;
        max-width: 400px;
    }

    .login-modules {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    html,
    body.login-page {
        overflow: auto;
        height: auto;
    }

    .login-split {
        flex-direction: column;
        height: auto;
        min-height: 100dvh;
        overflow: visible;
    }

    .login-panel {
        padding: 24px 20px;
        overflow: visible;
    }

    .login-panel-login {
        order: 1;
    }

    .login-panel-info {
        order: 2;
    }

    .login-hero-image,
    .login-hero-image img {
        max-height: 110px;
        height: 110px;
    }
}

@media (max-height: 700px) and (min-width: 769px) {
    .login-hero-image,
    .login-hero-image img {
        max-height: 100px;
        height: 100px;
    }

    .login-form-title {
        font-size: 22px;
    }

    .login-form .input-group input,
    .captcha-img,
    .refresh-btn {
        height: 38px;
    }

    .login-btn {
        height: 40px;
    }

    .login-module-card {
        padding: 8px 10px;
        margin-bottom: 6px;
    }
}
