﻿*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f0f4f8;
    min-height: 100vh;
}

/* Header */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #1a3c5e;
    color: #fff;
    padding: 12px 24px;
}

    .header img {
        height: 64px;
        width: auto;
    }

.header-center {
    text-align: center;
    flex: 1;
    padding: 0 16px;
}

    .header-center h1 {
        font-size: 1.2rem;
        font-weight: 700;
        margin-bottom: 4px;
    }

    .header-center h2 {
        font-size: 0.95rem;
        font-weight: 400;
        margin-bottom: 2px;
    }

    .header-center h3 {
        font-size: 0.85rem;
        font-weight: 300;
        opacity: 0.85;
    }

.header-line {
    height: 4px;
    background: #f0a500;
}

/* Layout */
.main-container {
    display: flex;
    min-height: calc(100vh - 100px);
    max-width: 1100px;
    margin: 40px auto;
    gap: 32px;
    padding: 0 20px;
}

/* Left */
.left-panel {
    flex: 1;
}

.welcome-card {
    background: #1a3c5e;
    color: #fff;
    border-radius: 12px;
    padding: 2rem;
    height: 100%;
}

    .welcome-card h2 {
        font-size: 1.4rem;
        margin-bottom: 1rem;
        color: #f0a500;
    }

    .welcome-card p {
        font-size: 0.9rem;
        line-height: 1.6;
        margin-bottom: 1.2rem;
        opacity: 0.9;
    }

    .welcome-card ul {
        list-style: none;
        padding: 0;
    }

        .welcome-card ul li {
            padding: 6px 0;
            font-size: 0.9rem;
            border-bottom: 1px solid rgba(255,255,255,0.1);
        }

/* Right */
.right-panel {
    width: 380px;
    display: flex;
    align-items: center;
}

.login-card {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    width: 100%;
    box-shadow: 0 4px 24px rgba(0,0,0,0.10);
}

    .login-card h2 {
        font-size: 1.4rem;
        font-weight: 700;
        color: #1a3c5e;
        margin-bottom: 1.5rem;
        text-align: center;
    }

/* Form */
.form-group {
    margin-bottom: 1.1rem;
}

    .form-group label {
        display: block;
        font-size: 0.85rem;
        font-weight: 600;
        color: #444;
        margin-bottom: 5px;
    }

.form-control {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: border-color 0.2s;
}

    .form-control:focus {
        outline: none;
        border-color: #1a3c5e;
        box-shadow: 0 0 0 3px rgba(26,60,94,0.1);
    }

/* Password toggle */
.password-wrapper {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 1rem;
    user-select: none;
}

/* Captcha */
.captcha-input {
    letter-spacing: 2px;
    font-weight: 600;
}

/* Errors */
.error-summary {
    background: #fff3f3;
    border: 1px solid #f5c6cb;
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 0.85rem;
    color: #721c24;
    margin-bottom: 1rem;
}

.field-error {
    color: #dc3545;
    font-size: 0.78rem;
    margin-top: 3px;
    display: block;
}

/* Button */
.login-btn {
    width: 100%;
    padding: 10px;
    background: #1a3c5e;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
    transition: background 0.2s;
}

    .login-btn:hover {
        background: #14304d;
    }

/* Responsive */
@media (max-width: 768px) {
    .main-container {
        flex-direction: column;
    }

    .right-panel {
        width: 100%;
    }

    .header-left img, .header-right img {
        height: 44px;
    }

    .header-center h1 {
        font-size: 0.95rem;
    }
}
