@media (min-width: 1024px) {
    .brand-panel { min-height: 100vh; }
}

/* ===== Card ===== */
.auth-card {
    background: #FFFFFF;
    border: 1px solid #E7E3D6;
    border-radius: 0px;
    box-shadow: 0 10px 35px -12px rgba(23, 63, 50, 0.18);
}

/* ===== Buttons ===== */
.btn-primary {
    background-color: #07A0FD;
    color: #fff;
    border-radius: 12px;
    font-weight: 600;
    padding: 0.85rem 1.5rem;
    transition: background-color 0.2s ease, transform 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}
.btn-primary:hover:not(:disabled) { background-color: #00456F; }
.btn-primary:disabled { background-color: #A9A79B; cursor: not-allowed; }

.btn-ghost {
    background: transparent;
    color: #07A0FD;
    font-weight: 600;
    border-radius: 12px;
    padding: 0.7rem 1.25rem;
    border: 1px solid #E7E3D6;
    transition: background-color 0.2s ease;
}
.btn-ghost:hover:not(:disabled) { background-color: #F6F5F1; }

.btn-spinner {
    width: 16px; height: 16px;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: #fff;
    border-radius: 50%;
    display: inline-block;
    animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== Inputs ===== */
.input-field {
    width: 100%;
    border: 1px solid #DEDACB;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    background-color: #FBFAF7;
    font-size: 0.95rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.input-field:focus {
    outline: none;
    border-color: #07A0FD;
    box-shadow: 0 0 0 3px rgba(23, 63, 50, 0.12);
    background-color: #fff;
}
.field-invalid { border-color: #B3261E !important; }
.field-error-text { color: #B3261E; font-size: 0.8rem; margin-top: 0.3rem; }

select.input-field {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2307A0FD'%3E%3Cpath fill-rule='evenodd' d='M5.23 7.21a.75.75 0 011.06.02L10 10.94l3.71-3.71a.75.75 0 111.06 1.06l-4.24 4.25a.75.75 0 01-1.06 0L5.21 8.29a.75.75 0 01.02-1.08z' clip-rule='evenodd'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.9rem center;
    background-size: 1.1rem;
}

/* ===== OTP boxes ===== */
.otp-boxes { display: flex; gap: 0.6rem; justify-content: center; }
.otp-box {
    width: 3rem; height: 3.5rem;
    text-align: center;
    font-size: 1.4rem;
    font-weight: 600;
    border: 1.5px solid #DEDACB;
    border-radius: 12px;
    background-color: #FBFAF7;
    transition: all 0.15s ease;
}
.otp-box:focus {
    outline: none;
    border-color: #07A0FD;
    box-shadow: 0 0 0 3px rgba(23, 63, 50, 0.12);
    background-color: #fff;
}
.otp-box.invalid { border-color: #B3261E; background-color: #FBF2F1; }
@media (max-width: 420px) {
    .otp-box { width: 2.5rem; height: 3rem; font-size: 1.15rem; }
    .otp-boxes { gap: 0.4rem; }
}

/* ===== Step indicator ===== */
.step-track { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1.75rem; }
.step-dot {
    width: 2rem; height: 2rem;
    border-radius: 50%;
    background: #EFEBDD;
    color: #8A8672;
    display: flex; align-items: center; justify-content: center;
    font-weight: 600; font-size: 0.85rem;
    flex-shrink: 0;
    transition: all 0.25s ease;
}
.step-line { flex: 1; height: 2px; background: #EFEBDD; }
.step-dot.is-active { background: #07A0FD; color: #fff; }
.step-dot.is-done { background: #C9A24B; color: #fff; }
.step-line.is-done { background: #C9A24B; }

/* ===== Toasts ===== */
.toast-card {
    background: #fff;
    border-left: 4px solid #C9A24B;
    border-radius: 10px;
    padding: 0.85rem 1.1rem;
    box-shadow: 0 8px 24px -8px rgba(0,0,0,0.25);
    display: flex; align-items: center; gap: 0.6rem;
    max-width: 340px;
    transform: translateX(120%);
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
    font-size: 0.875rem;
}
.toast-card.toast-in { transform: translateX(0); opacity: 1; }
.toast-card.toast-out { transform: translateX(120%); opacity: 0; }
.toast-icon {
    width: 22px; height: 22px; border-radius: 50%;
    color: #fff; font-size: 0.75rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}

/* ===== Password strength ===== */
.strength-track { height: 5px; background: #EFEBDD; border-radius: 999px; overflow: hidden; margin-top: 0.5rem; }
.strength-fill { height: 100%; width: 0%; transition: width 0.25s ease, background-color 0.25s ease; }

/* ===== Misc ===== */
.hidden-step { display: none !important; }
.fade-slide { animation: fadeSlide 0.35s ease; }
@keyframes fadeSlide { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
