@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Merriweather:wght@700;900&display=swap');

:root {
    --royal: #003087;
    --royal2: #1a4fa8;
    --gold: #f59e0b;
    --gold2: #fbbf24;
    --dark: #0f172a;
    --gray: #6b7280;
    --border: #e2e8f0;
    --off: #f8fafc;
}

body, .login-card, .login-dark .login-card,
.page-wrapper, .container-fluid {
    background: transparent !important;
}

/* ===== Full Page ===== */
.gov-login-page {
    min-height: 100vh;
    background: var(--off);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    position: relative;
    overflow: hidden;
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
}

/* ===== Decorative Elements ===== */
.gov-deco {
    position: absolute;
    border-radius: 50%;
    z-index: 0;
}
.gov-deco-1 {
    width: 200px; height: 200px;
    background: rgba(0, 48, 135, 0.06);
    top: -60px; left: -60px;
}
.gov-deco-2 {
    width: 120px; height: 120px;
    background: rgba(245, 158, 11, 0.08);
    bottom: 40px; right: 60px;
}
.gov-deco-3 {
    width: 80px; height: 80px;
    border: 3px solid rgba(0, 48, 135, 0.08);
    top: 18%; right: 8%;
}
.gov-deco-4 {
    width: 260px; height: 260px;
    border: 3px solid rgba(0, 48, 135, 0.05);
    bottom: -80px; left: 12%;
}

/* ===== Card Wrapper ===== */
.gov-login-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1080px;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 25px 60px rgba(0,48,135,0.1);
    display: flex;
    overflow: hidden;
    min-height: 580px;
}

/* ===== Left: Form ===== */
.gov-login-left {
    flex: 1;
    padding: 50px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.gov-login-title {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 1.65rem;
    font-weight: 900;
    color: var(--dark);
    margin-bottom: 6px;
    text-align: center;
}
.gov-login-subtitle {
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 32px;
    text-align: center;
}

/* ── Tag ── */
.gov-login-tag {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--royal);
    margin-bottom: 16px;
}
.gov-login-tag::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 3px;
    background: var(--gold);
    border-radius: 2px;
}
.gov-login-tag::after {
    content: '';
    display: inline-block;
    width: 24px;
    height: 3px;
    background: var(--gold);
    border-radius: 2px;
}

/* ── Form Fields ── */
.gov-form-group {
    margin-bottom: 20px;
    position: relative;
}
.gov-form-group .gov-input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    width: 18px;
    height: 18px;
    z-index: 2;
}
.gov-form-group .gov-input-icon svg {
    width: 18px;
    height: 18px;
}
.gov-input-field {
    width: 100% !important;
    padding: 14px 16px 14px 48px !important;
    border: 2px solid var(--border) !important;
    border-radius: 10px !important;
    font-size: 0.9rem !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    color: var(--dark) !important;
    background: var(--off) !important;
    height: auto !important;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.gov-input-field::placeholder { color: #94a3b8; }
.gov-input-field:focus {
    outline: none !important;
    border-color: var(--royal) !important;
    box-shadow: 0 0 0 3px rgba(0, 48, 135, 0.08) !important;
    background: #fff !important;
}

.gov-password-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #94a3b8;
    background: none;
    border: none;
    padding: 0;
    z-index: 3;
}
.gov-password-toggle svg {
    width: 18px;
    height: 18px;
    color: #94a3b8;
}

/* ── Cloudflare ── */
.gov-cf-box {
    border: 2px solid var(--border);
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--off);
}
.gov-cf-left { display: flex; align-items: center; gap: 10px; }
.gov-cf-check {
    width: 22px; height: 22px;
    background: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}
.gov-cf-text { font-size: 0.82rem; font-weight: 600; color: #374151; }
.gov-cf-logo {
    text-align: right;
    font-size: 10px;
    color: var(--gray);
    font-weight: 700;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}
.gov-cf-logo span { font-size: 0.6rem; font-weight: normal; color: #94a3b8; }

/* ── Button ── */
.gov-btn-login {
    background: var(--royal);
    color: #fff;
    padding: 14px;
    border: none;
    border-radius: 10px;
    width: 100%;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.25s;
    box-shadow: 0 4px 14px rgba(0, 48, 135, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.gov-btn-login:hover {
    background: #001f5e;
    box-shadow: 0 6px 20px rgba(0, 48, 135, 0.4);
    transform: translateY(-1px);
}

/* ── Footer Links ── */
.gov-login-links {
    margin-top: 24px;
    display: flex;
    justify-content: center;
    gap: 14px;
    font-size: 0.8rem;
    flex-wrap: wrap;
}
.gov-login-links a {
    color: var(--gray);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}
.gov-login-links a:hover { color: var(--royal); }
.gov-login-links .gov-sep { color: #d1d5db; }

.gov-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    padding: 6px 16px;
    background: #eff6ff;
    color: var(--royal) !important;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    border: 1px solid #bfdbfe;
    transition: all 0.2s;
}
.gov-back-link:hover { background: var(--royal); color: #fff !important; }

.gov-validation-error {
    color: #dc2626;
    font-size: 0.78rem;
    margin-top: 5px;
    padding-left: 5px;
}

/* ===== Right: Panel ===== */
.gov-login-right {
    flex: 1.1;
    background: linear-gradient(160deg, #001a5e 0%, #003087 40%, #1a4fa8 100%);
    padding: 40px 35px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.gov-login-right::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,.04) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
}

.gov-panel-deco {
    position: absolute;
    border-radius: 50%;
}
.gov-panel-deco-1 {
    width: 200px; height: 200px;
    bottom: -60px; right: -60px;
    border: 2px solid rgba(255,255,255,0.1);
}
.gov-panel-deco-2 {
    width: 80px; height: 80px;
    top: 30px; left: 30px;
    background: rgba(245, 158, 11, 0.12);
}
.gov-panel-deco-3 {
    width: 40px; height: 40px;
    top: 20%; right: 25px;
    border: 2px solid rgba(255,255,255,0.08);
}

.gov-panel-content {
    position: relative;
    z-index: 1;
    text-align: center;
    width: 100%;
}

.gov-panel-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold2);
    margin-bottom: 14px;
}
.gov-panel-tag::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 3px;
    background: rgba(255,255,255,0.3);
    border-radius: 2px;
}

.gov-panel-frame {
    background: rgba(255,255,255,0.08);
    border-radius: 20px;
    padding: 14px;
    display: inline-block;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.12);
    max-width: 400px;
    width: 100%;
    position: relative;
}
.gov-panel-frame img,
.gov-panel-frame iframe {
    width: 100%;
    border-radius: 14px;
    display: block;
}

.gov-panel-bolt {
    position: absolute;
    bottom: 55%;
    left: -14px;
    width: 40px; height: 40px;
    background: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(245,158,11,0.4);
    z-index: 2;
}
.gov-panel-bolt svg {
    width: 18px; height: 18px;
    color: var(--dark);
    fill: var(--dark);
}

.gov-panel-caption {
    color: #fff;
    font-family: 'Merriweather', Georgia, serif;
    font-weight: 700;
    font-size: 0.95rem;
    margin-top: 20px;
}
.gov-panel-sub {
    color: rgba(255,255,255,0.5);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-top: 6px;
}

/* ===== Responsive ===== */
@media (max-width: 991px) {
    .gov-login-card {
        flex-direction: column-reverse;
        max-width: 520px;
        min-height: auto;
    }
    .gov-login-right {
        padding: 30px 25px;
        min-height: 320px;
        border-radius: 24px 24px 0 0;
    }
    .gov-login-left { padding: 35px 30px; }
    .gov-panel-frame { max-width: 320px; }
}
@media (max-width: 480px) {
    .gov-login-page { padding: 15px; }
    .gov-login-card { border-radius: 18px; }
    .gov-login-left { padding: 30px 22px; }
    .gov-login-right { padding: 25px 20px; border-radius: 18px 18px 0 0; }
    .gov-login-title { font-size: 1.3rem; }
}
