﻿*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #fff;
}

/* ── Wrapper ── */
.login-wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/*  LEFT PANEL */
.left-panel {
    display: none;
    position: relative;
    width: 60%;
    overflow: hidden;
    /* Bạn có thể đổi link ảnh nền BYD ở đây */
    background-image: url('https://images.unsplash.com/photo-1772631259381-dfdc38dec2da?w=1080&q=80');
    background-size: cover;
    background-position: center;
}

@media (min-width: 1024px) {
    .left-panel {
        display: flex;
    }
}

.left-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.70) 0%, rgba(0,0,0,0.40) 50%, rgba(26,58,92,0.60) 100%);
}

.left-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 110%;
    padding:32px 48px 48px 48px;
    width: 100%;
}

.brand-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-icon {
    width: 48px;
    height: 48px;
    background: #00a0e9;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0,160,233,0.4);
    flex-shrink: 0;
}

.brand-subtitle {
    color: rgba(255,255,255,0.7);
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.brand-name {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.tagline {
    color: #fff;
    font-size: 36px;
    font-weight: 300;
    line-height: 1.3;
    margin-bottom: 16px;
    transition: font-size 0.3s;
}

.tagline-highlight {
    color: #00a0e9;
    font-weight: 700;
}

.tagline-desc {
    color: rgba(255,255,255,0.55);
    font-size: 14px;
    max-width: 360px;
    line-height: 1.7;
    transition: font-size 0.3s;
}

.stats-row {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 32px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    color: #00a0e9;
    font-size: 24px;
    font-weight: 700;
    transition: font-size 0.3s;
}

.stat-label {
    color: rgba(255,255,255,0.45);
    font-size: 11px;
    margin-top: 4px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255,255,255,0.2);
}

/* RIGHT PANEL*/
.right-panel {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    padding: 48px 32px;
    position: relative;
}

@media (min-width: 1024px) {
    .right-panel {
        width: 40%;
    }
}

.dot-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.025;
    background-image: radial-gradient(circle at 1px 1px, #00a0e9 1px, transparent 0);
    background-size: 32px 32px;
    pointer-events: none;
}

.form-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 380px;
    transition: max-width 0.3s ease;
}

.mobile-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 32px;
}

@media (min-width: 1024px) {
    .mobile-brand {
        display: none;
    }
}

.mobile-brand-name {
    color: #111827;
    font-size: 20px;
    font-weight: 700;
    margin-top: 12px;
}

.mobile-brand-sub {
    color: #9ca3af;
    font-size: 13px;
    margin-top: 4px;
}

.welcome-block {
    margin-bottom: 32px;
}

.welcome-title {
    color: #111827;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 4px;
    transition: font-size 0.3s;
}

.welcome-sub {
    color: #6b7280;
    font-size: 14px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 6px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 14px;
    display: flex;
    align-items: center;
    pointer-events: none;
}

.form-input {
    width: 100%;
    padding: 12px 16px 12px 42px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    font-size: 14px;
    color: #111827;
    background: #f9fafb;
    outline: none;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s, font-size 0.3s, padding 0.3s;
}

    .form-input::placeholder {
        color: #9ca3af;
    }

    .form-input:focus {
        background: #fff;
        border-color: #00a0e9;
        box-shadow: 0 0 0 3px rgba(0,160,233,0.15);
    }

.toggle-password {
    position: absolute;
    right: 14px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    padding: 0;
}

    .toggle-password:hover {
        opacity: 0.7;
    }

.validation-msg {
    display: block;
    color: #ef4444;
    font-size: 12px;
    margin-top: 4px;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.remember-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #4b5563;
    cursor: pointer;
}

.remember-checkbox {
    width: 16px;
    height: 16px;
    accent-color: #00a0e9;
    cursor: pointer;
}

.forgot-link {
    font-size: 14px;
    font-weight: 500;
    color: #00a0e9;
    text-decoration: none;
}

    .forgot-link:hover {
        color: #0080c0;
    }

.error-box {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 16px;
}

.error-icon {
    width: 18px;
    height: 18px;
    background: #ef4444;
    border-radius: 50%;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.error-box p {
    color: #dc2626;
    font-size: 14px;
    line-height: 1.5;
}

.btn-login {
    width: 100%;
    padding: 14px 24px;
    background: #00a0e9;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(0,160,233,0.3);
    margin-top: 8px;
}

    .btn-login:hover:not(:disabled) {
        background: #0088cc;
        box-shadow: 0 6px 20px rgba(0,160,233,0.4);
        transform: translateY(-1px);
    }

    .btn-login:active:not(:disabled) {
        transform: translateY(0);
    }

    .btn-login:disabled {
        opacity: 0.7;
        cursor: not-allowed;
    }

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.75s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 24px 0;
}

.divider-line {
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

.divider-text {
    font-size: 12px;
    color: #9ca3af;
    white-space: nowrap;
}

.support-text {
    text-align: center;
    font-size: 14px;
    color: #6b7280;
}

.support-link {
    color: #00a0e9;
    font-weight: 500;
    text-decoration: none;
}

    .support-link:hover {
        text-decoration: underline;
    }

.footer {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid #f3f4f6;
    text-align: center;
}

.footer-copy {
    font-size: 12px;
    color: #9ca3af;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 6px;
}

.footer-link {
    font-size: 12px;
    color: #9ca3af;
    text-decoration: none;
}

    .footer-link:hover {
        color: #6b7280;
    }

@media (min-width: 1366px) {
    .form-container {
        max-width: 400px;
    }

    .tagline {
        font-size: 42px;
    }
}

@media (min-width: 1920px) {
    .form-container {
        max-width: 460px;
    }
    .welcome-title {
        font-size: 34px;
    }

    .form-label {
        font-size: 15px;
    }

    .form-input {
        padding: 16px 20px 16px 46px;
        font-size: 16px;
    }
    .btn-login {
        padding: 18px 24px;
        font-size: 16px;
    }
    .tagline {
        font-size: 52px;
    }

    .tagline-desc {
        font-size: 18px;
        max-width: 450px;
    }

    .stat-number {
        font-size: 32px;
    }

    .stat-label {
        font-size: 13px;
    }
}

@media (min-width: 2560px) {
    .form-container {
        max-width: 520px;
    }

    .welcome-title {
        font-size: 40px;
    }

    .welcome-sub {
        font-size: 16px;
    }

    .form-label {
        font-size: 16px;
        margin-bottom: 10px;
    }

    .form-input {
        font-size: 18px;
        padding: 20px 24px 20px 50px;
        border-radius: 16px;
    }

    .input-icon svg {
        width: 20px;
        height: 20px;
    }

    .btn-login {
        padding: 22px 24px;
        font-size: 18px;
        border-radius: 16px;
    }

    .tagline {
        font-size: 64px;
    }

    .tagline-desc {
        font-size: 22px;
        max-width: 600px;
    }

    .stat-number {
        font-size: 42px;
    }

    .stat-label {
        font-size: 15px;
    }
}
