* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    background: #fff;
}

/* ── Left panel ── */
.login-left {
    position: relative;
    width: 42%;
    background: #d41b22;
    color: black;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.login-left__circle {
    position: absolute;
    width: 520px;
    height: 520px;
    background: #ffffff;
    border-radius: 50%;
    right: -140px;
    top: 50%;
    transform: translateY(-50%);
}

.login-left__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 40px;
}

.login-left__flag {
    width: 72px;
    height: auto;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.2));
}

.login-left__logo {
    width: 240px;
    height: auto;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.15));
}

.login-right__title{
    text-align: center;
    padding: 20px;
}
/* ── Right panel ── */
.login-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 40px;
    background: #fff;
}

.login-right__inner {
    width: 100%;
    max-width: 360px;
}

/* ── Form ── */
.form-group { margin-bottom: 16px; }

.form-input {
    width: 100%;
    padding: 13px 16px;
    font-size: 14px;
    background: #f0f0f0;
    border: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-family: inherit;
    color: #1a1a1a;
}

.form-input::placeholder { color: #aaa; }

.form-input:focus {
    outline: none;
    background: #e8e8e8;
    box-shadow: 0 0 0 2px rgba(212, 27, 34, 0.25);
}

/* ── Password toggle ── */
.password-wrapper { position: relative; }
.password-wrapper .form-input { padding-right: 44px; }
.btn-toggle-pwd {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    color: #aaa;
    display: flex;
    align-items: center;
}
.btn-toggle-pwd:hover { color: #555; }

/* ── Error ── */
.error-message {
    background: rgba(212, 27, 34, 0.08);
    color: #d41b22;
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 13px;
    border-left: 4px solid #d41b22;
}

/* ── Checkbox ── */
.checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}
.checkbox-input {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    cursor: pointer;
    accent-color: #d41b22;
}
.checkbox-label {
    font-size: 13px;
    color: #555;
    cursor: pointer;
    user-select: none;
}

/* ── Buttons ── */
.btn-login {
    width: 100%;
    padding: 13px;
    font-size: 15px;
    font-weight: 700;
    color: white;
    background: #d41b22;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease;
    font-family: inherit;
    letter-spacing: 0.3px;
}
.btn-login:hover { background: #b51219; }
.btn-login:active { transform: scale(0.99); }

.btn-forgot {
    display: block;
    margin: 14px auto 0;
    background: none;
    border: none;
    color: #888;
    font-size: 13px;
    cursor: pointer;
    font-family: inherit;
    text-align: center;
    width: 100%;
}
.btn-forgot:hover { color: #333; }

/* ── Footer ── */
.login-footer {
    margin-top: 32px;
    font-size: 12px;
    color: rgba(0,0,0,0.4);
    text-align: center;
}

/* ── Modal reset password ── */
.reset-modal {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.18);
    padding: 40px;
    width: 100%;
    max-width: 420px;
    animation: fadeUp 0.3s ease-out;
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}
.modal-title { margin: 0 0 8px; font-size: 20px; color: #111; }
.modal-desc  { margin: 0 0 24px; font-size: 14px; color: #6b7280; line-height: 1.6; }
.modal-error { background: #fee; color: #d41b22; padding: 10px 14px; border-radius: 8px; margin-bottom: 16px; font-size: 13px; border-left: 4px solid #d41b22; }
.modal-field { margin-bottom: 16px; }
.modal-label { display: block; font-size: 13px; font-weight: 500; color: #374151; margin-bottom: 6px; }
.modal-input { width: 100%; padding: 11px 14px; font-size: 15px; border: 2px solid #e5e7eb; border-radius: 8px; transition: border-color 0.2s; font-family: inherit; box-sizing: border-box; }
.modal-input:focus { outline: none; border-color: #d41b22; box-shadow: 0 0 0 3px rgba(212,27,34,0.1); }
.modal-code  { font-size: 24px; letter-spacing: 8px; text-align: center; font-family: monospace; }
.modal-btn   { width: 100%; padding: 13px; font-size: 15px; font-weight: 600; color: #fff; background: #d41b22; border: none; border-radius: 8px; cursor: pointer; font-family: inherit; transition: background 0.2s; margin-top: 8px; }
.modal-btn:hover { background: #b51219; }
.modal-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.modal-close { display: block; margin: 14px auto 0; background: none; border: none; color: #9ca3af; font-size: 13px; cursor: pointer; font-family: inherit; }
.modal-close:hover { color: #374151; }
.modal-pwd-wrapper { position: relative; }
.modal-pwd-wrapper .modal-input { padding-right: 42px; }
.modal-pwd-wrapper .btn-toggle-pwd { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); }

/* ── Responsive ── */
@media (max-width: 700px) {
    body { flex-direction: column; }
    .login-left {
        width: 100%;
        min-height: 200px;
        padding: 40px 20px;
    }
    .login-left__circle {
        width: 320px;
        height: 320px;
        right: -80px;
    }
    .login-right { padding: 40px 24px; }
}
