﻿*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary: #0f3460;
    --primary-dark: #0a2540;
    --accent: #f0a500;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --danger: #dc2626;
    --radius: 14px;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: linear-gradient(135deg, #eef2f7 0%, #dde7f0 100%);
    min-height: 100vh;
}

/* ── Top Bar ─────────────────────────────────────────────── */
/* ── Header ─────────────────────────────────────────────── */

.header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    background: #fff;
    padding: 18px 40px;
    box-shadow: 0 2px 6px rgba(0,0,0,.08);
}

.header-left,
.header-right {
    width: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.header-logo {
    width: 82px;
    height: 82px;
    object-fit: contain;
}

.header-center {
    flex: 1;
    text-align: center;
}

    .header-center h1 {
        font-size: 2rem;
        font-weight: 700;
        color: var(--primary);
        margin-bottom: 4px;
    }

    .header-center h2 {
        font-size: 1.05rem;
        color: var(--text-muted);
        margin-bottom: 8px;
        font-weight: 500;
    }

    .header-center h3 {
        font-size: 1.1rem;
        color: var(--accent);
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

.header-line {
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

/* Mobile */

@media (max-width:860px) {

    .header {
        gap: 12px;
        padding: 12px;
    }

    .header-left,
    .header-right {
        width: 70px;
    }

    .header-logo {
        width: 54px;
        height: 54px;
    }

    .header-center h1 {
        font-size: 1rem;
    }

    .header-center h2 {
        font-size: .75rem;
    }

    .header-center h3 {
        font-size: .8rem;
    }
}
/* ── Layout ──────────────────────────────────────────────── */
.main-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 90px);
    max-width: 1080px;
    margin: 0 auto;
    gap: 48px;
    padding: 40px 20px;
}

/* ── Left / Brand Panel ─────────────────────────────────── */
.left-panel {
    flex: 1.1;
}

.welcome-card {
    background: linear-gradient(160deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    border-radius: var(--radius);
    padding: 2.6rem;
    box-shadow: 0 20px 40px rgba(15,52,96,0.25);
    position: relative;
    overflow: hidden;
}

    .welcome-card::before {
        content: '';
        position: absolute;
        top: -60px;
        right: -60px;
        width: 200px;
        height: 200px;
        background: rgba(240,165,0,0.15);
        border-radius: 50%;
    }

    .welcome-card h2 {
        font-size: 1.6rem;
        font-weight: 700;
        margin-bottom: 0.8rem;
        color: #fff;
    }

    .welcome-card > p {
        font-size: 0.92rem;
        line-height: 1.7;
        margin-bottom: 1.6rem;
        color: rgba(255,255,255,0.82);
    }

    .welcome-card ul {
        list-style: none;
    }

        .welcome-card ul li {
            padding: 10px 0 10px 28px;
            font-size: 0.9rem;
            font-weight: 500;
            border-bottom: 1px solid rgba(255,255,255,0.12);
            position: relative;
        }

            .welcome-card ul li::before {
                content: '✓';
                position: absolute;
                left: 0;
                color: var(--accent);
                font-weight: 700;
            }

            .welcome-card ul li:last-child {
                border-bottom: none;
            }

/* ── Right / Login Panel ────────────────────────────────── */
.right-panel {
    width: 400px;
}

.login-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 2.6rem 2.4rem;
    width: 100%;
    box-shadow: 0 20px 40px rgba(15,23,42,0.10);
    border: 1px solid rgba(0,0,0,0.03);
}

    .login-card h2 {
        font-size: 1.5rem;
        font-weight: 700;
        color: var(--text-dark);
        margin-bottom: 0.3rem;
        text-align: left;
    }

.login-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.8rem;
}

/* ── Form ────────────────────────────────────────────────── */
.form-group {
    margin-bottom: 1.3rem;
}

    .form-group label {
        display: block;
        font-size: 0.8rem;
        font-weight: 600;
        color: var(--text-dark);
        margin-bottom: 6px;
        letter-spacing: 0.2px;
    }

.form-control {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--border);
    border-radius: 9px;
    font-size: 0.92rem;
    background: #f8fafc;
    transition: all 0.18s ease;
}

    .form-control:focus {
        outline: none;
        border-color: var(--primary);
        background: #fff;
        box-shadow: 0 0 0 4px rgba(15,52,96,0.08);
    }

    .form-control::placeholder {
        color: #a0aec0;
    }

/* ── Password toggle ─────────────────────────────────────── */
.password-wrapper {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 1rem;
    user-select: none;
    color: var(--text-muted);
}

/* ── Captcha ─────────────────────────────────────────────── */
.captcha-input {
    letter-spacing: 2px;
    font-weight: 600;
}

.form-group label strong {
    color: var(--primary);
    font-weight: 700;
    background: #eef4fb;
    padding: 3px 10px;
    border-radius: 6px;
    margin-left: 4px;
    font-size: 0.85rem;
}

/* ── Errors ──────────────────────────────────────────────── */
.error-summary {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.83rem;
    color: var(--danger);
    margin-bottom: 1.2rem;
}

.field-error {
    color: var(--danger);
    font-size: 0.76rem;
    margin-top: 4px;
    display: block;
}

.validation-summary-errors {
    color: var(--danger);
    font-size: 0.83rem;
    margin-bottom: 1rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 10px 14px;
}

    .validation-summary-errors ul {
        list-style: none;
        padding-left: 0;
    }

/* ── Button ──────────────────────────────────────────────── */
.login-btn {
    width: 100%;
    padding: 13px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 9px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    letter-spacing: 0.3px;
    transition: all 0.18s ease;
}

    .login-btn:hover {
        background: var(--primary-dark);
        box-shadow: 0 8px 20px rgba(15,52,96,0.25);
        transform: translateY(-1px);
    }

    .login-btn:active {
        transform: translateY(0);
    }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 860px) {
    .main-container {
        flex-direction: column;
        padding: 24px 20px;
        gap: 24px;
    }

    .right-panel {
        width: 100%;
    }

    .welcome-card {
        padding: 1.8rem;
    }

    .header {
        flex-wrap: wrap;
        gap: 10px;
    }

        .header img {
            height: 38px;
        }

    .header-center h1 {
        font-size: 0.9rem;
    }
}
.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    
}