:root {
    --primary-color: #9b1c31;
    --primary-hover: #7f1627;
    --text-muted: #6b7280;
    --border-color: #e5e7eb;
    --bg-light: #ffffff;
    --input-bg: #fafafa;
    --va-bg: #f5ebe2;
    --va-secondary: #d37977;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    font-family: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
    background: var(--va-bg) ;
}

/* ── Layout ── */
.login-wrapper {
    display: flex;
    min-height: 100vh;
}

.login-image {
    flex: 1;
    height: 100vh;
    overflow: hidden;
}

.login-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.login-form-area {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.login-box {
    width: 100%;
    max-width: 420px;
}

.login-title {
    color: var(--primary-color);
    font-size: 30px;
    font-weight: bold;
}

.login-subtitle {
    color: var(--text-muted);
    margin: 10px 0 25px;
}

/* ── OTP inputs (base — desktop) ── */
.otp-inputs {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.otp-input {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    border: 2px solid #9b1c31;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
}

.otp-input:focus {
    border-color: var(--primary-color);
    outline: none;
}

/* ── Form ── */
.form-group {
    margin-bottom: 15px;
    position: relative;
}

.input-field {
    width: 100%;
    height: 48px;
    border: 1px solid var(--border-color);
    padding: 0 12px;
    border-radius: 6px;
    background: var(--input-bg);
}

.input-field:focus {
    border-color: var(--primary-color);
    outline: none;
}

.form-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 14px;
}

.forgot-link {
    color: var(--primary-color);
    text-decoration: none;
}

.bottom-text {
    text-align: center;
    margin-top: 15px;
}

.bottom-text a {
    color: var(--primary-color);
    font-weight: bold;
    text-decoration: none;
}

.btn-primary {
    width: 100%;
    height: 48px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.btn-primary:hover {
    background: var(--primary-hover);
}

.form-control {
    font-size: 0.88rem;
    height: 45px;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    top: 24px;
    left: 12px;
    transform: translateY(-50%);
    color: #9ca3af;
    pointer-events: none;
}

.input-with-icon {
    padding-left: 40px;
    height: 50px;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--va-secondary);
    box-shadow: 0 0 0 3px rgba(211, 121, 119, 0.15);
}

.form-control,
.form-select {
    border: 1.5px solid #e0d6cf;
    border-radius: 8px;
    font-size: 0.88rem;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

/* ══════════════════════════════════
   RESPONSIVE — must come AFTER base
══════════════════════════════════ */

@media (max-width: 992px) {
    .login-image { display: none; }
    .btn-primary { max-width: 400px; margin-left: auto; margin-right: auto; display: block; }
}

@media (max-width: 768px) {
    .login-wrapper { flex-direction: column; }
    .login-image { display: none; }
    .login-form-area { flex: 1; width: 100%; padding: 30px 20px; }
    .login-box { max-width: 100%; }
    .login-title { font-size: 24px; }
    .login-subtitle { font-size: 14px; }
    .otp-inputs { gap: 10px; }
    .otp-input { width: 48px; height: 48px; font-size: 1.1rem; }
}

@media (max-width: 500px) {
    .login-form-area { padding: 24px 16px; }
    .otp-inputs { gap: 8px; }
    .otp-input { width: 44px; height: 44px; font-size: 1rem; }
}

@media (max-width: 400px) {
    .login-form-area { padding: 20px 12px; }
    .login-title { font-size: 20px; }
    .login-subtitle { font-size: 13px; }
    .otp-inputs { gap: 6px; }
    .otp-input { width: 38px; height: 38px; font-size: .9rem; }
}

/* ── Vendor Alert Messages (matches user side style) ── */
.va-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: .875rem;
    margin-bottom: 16px;
    line-height: 1.5;
}
.va-alert.error {
    background: rgba(155,28,49,.08);
    border-left: 3px solid #9b1c31;
    color: #7f1627;
}
.va-alert.success {
    background: rgba(25,135,84,.07);
    border-left: 3px solid #198754;
    color: #145c38;
}
.va-alert i { margin-top: 2px; flex-shrink: 0; }
.va-alert .va-alert-close {
    background: none; border: none; cursor: pointer;
    color: inherit; font-size: 1.1rem; padding: 0;
    margin-left: auto; line-height: 1; flex-shrink: 0;
}
