:root {
    --primary: #003876;
    --secondary: #ce1126;
    --accent: #00a0df;
    --success: #28a745;
    --success-light: #d4edda;
    --error: #dc3545;
    --error-light: #f8d7da;
    --bg-body: #f4f6f9;
    --white: #ffffff;
    --text-dark: #333333;
    --text-light: #666666;
    --border: #e0e0e0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

body {
    background-color: var(--bg-body);
    background-image: 
        linear-gradient(rgba(244,246,249,0.92), rgba(244,246,249,0.92)),
        url('https://images.unsplash.com/photo-1512389142860-9c449e58a543?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.gov-bar {
    background-color: var(--primary);
    color: var(--white);
    font-size: 0.8rem;
    padding: 8px 0;
    z-index: 100;
    position: relative;
    border-bottom: 2px solid var(--secondary);
}

.bar-content {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lang {
    font-weight: 500;
    opacity: 0.9;
    background: rgba(255,255,255,0.1);
    padding: 2px 8px;
    border-radius: 3px;
}

.main-header {
    background: var(--white);
    border-bottom: 4px solid var(--secondary);
    padding: 15px 0;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    margin-bottom: 0;
    position: relative;
    z-index: 90;
}

.header-flex {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo-area img:first-child {
    height: 70px;
    width: auto;
}

.titles h1 {
    font-size: 0.9rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.titles h2 {
    font-size: 1.2rem;
    color: var(--primary);
    font-weight: 700;
    margin-top: 3px;
}

.campaign-logo .campaign-box {
    border: 3px solid var(--primary);
    padding: 8px 20px;
    border-radius: 6px;
    color: var(--primary);
    text-align: center;
    line-height: 1.1;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.campaign-box span {
    font-size: 0.75rem;
    display: block;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.campaign-box strong {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--secondary);
}

.hero-slider {
    width: 100%;
    height: 380px;
    background: #ddd;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.slider-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 0 0 50px 0;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.auth-card {
    background: var(--white);
    width: 100%;
    max-width: 520px;
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    overflow: hidden;
    margin: 0 auto;
    position: relative;
    margin-top: -60px;
    z-index: 10;
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

.card-header {
    background: linear-gradient(135deg, var(--primary) 0%, #0056b3 100%);
    padding: 22px 30px;
    border-bottom: 1px solid var(--border);
}

.card-header h3 {
    color: var(--white);
    font-size: 1.3rem;
    margin-bottom: 8px;
    font-weight: 700;
}

.card-header p {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.9);
    line-height: 1.4;
}

.bg-success-light {
    background: linear-gradient(135deg, var(--success) 0%, #218838 100%) !important;
}

.card-body {
    padding: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 14px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1rem;
    color: #333;
    transition: all 0.3s;
    background: #fff;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 4px rgba(0, 56, 118, 0.15);
}

.form-group small {
    display: block;
    margin-top: 6px;
    color: #666;
    font-size: 0.8rem;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

#expiryDate, #cvv {
    text-align: center;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    letter-spacing: 2px;
}

#cvv {
    letter-spacing: 4px;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 25px;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 3px;
}

.checkbox-group label {
    font-size: 0.85rem;
    margin-bottom: 0;
}

.checkbox-group a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.checkbox-group a:hover {
    text-decoration: underline;
}

.captcha-container {
    background: #f8f9fa;
    padding: 18px;
    border-radius: 6px;
    margin-bottom: 25px;
    border: 2px solid var(--border);
    display: flex;
    flex-direction: column;
}

.captcha-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.captcha-input-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

.captcha-input-area span {
    font-weight: bold;
    font-size: 1.3rem;
    color: var(--primary);
    min-width: 80px;
}

.captcha-input-area input {
    flex: 1;
    padding: 12px;
    font-weight: bold;
    text-align: center;
    font-size: 1.2rem;
}

button {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary) 0%, #0056b3 100%);
    color: var(--white);
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    letter-spacing: 0.5px;
}

button:hover {
    background: linear-gradient(135deg, #002a5c 0%, #004085 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

button:active {
    transform: translateY(0);
}

button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.btn-green {
    background: linear-gradient(135deg, var(--success) 0%, #218838 100%) !important;
}

.btn-green:hover {
    background: linear-gradient(135deg, #218838 0%, #1e7e34 100%) !important;
}

.btn-outline {
    background: transparent;
    border: 3px solid var(--primary);
    color: var(--primary);
    margin-top: 25px;
}

.btn-outline:hover {
    background: rgba(0, 56, 118, 0.05);
}

.result-content {
    text-align: center;
    padding: 20px;
}

.icon-result {
    font-size: 4.5rem;
    margin-bottom: 20px;
    display: block;
}

.success-text {
    color: var(--success);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.error-text {
    color: var(--error);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.token-box {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 3px dashed var(--primary);
    padding: 20px;
    margin: 25px 0;
    font-family: 'Courier New', monospace;
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--secondary);
    letter-spacing: 3px;
    border-radius: 8px;
}

.loader {
    width: 22px;
    height: 22px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.hidden {
    display: none !important;
}

.main-footer {
    background: #1a1a1a;
    color: #a0a0a0;
    padding: 35px 0;
    margin-top: auto;
    font-size: 0.85rem;
    border-top: 5px solid var(--accent);
    position: relative;
    z-index: 100;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo {
    height: 70px;
    width: auto;
    opacity: 0.9;
}

.text-center {
    text-align: center;
}

.text-center p {
    margin-bottom: 8px;
}

.small {
    font-size: 0.75rem;
    opacity: 0.7;
}

.security-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.05);
    padding: 12px;
    border-radius: 6px;
    border-left: 4px solid var(--accent);
}

.security-badge span {
    font-size: 2rem;
}

.security-badge p {
    font-size: 0.75rem;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .header-flex {
        flex-direction: column;
        text-align: center;
    }
    
    .logo-area {
        flex-direction: column;
        gap: 15px;
    }
    
    .hero-slider {
        height: 250px;
    }
    
    .auth-card {
        margin-top: -30px;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 15px;
    }
}