:root {
    --input-height: 56px;
    --border-radius: 12px;
    --input-padding: 16px;
    --header-height: 70px;
    --modal-padding: 40px;
    --accent: #b49367;
    --accent-hover: #987f5b;
    --bg: #f8f8f8;
    --text: #333;
    --muted: #777;
    --card-bg: #fff;
}

/* ---------- ساختار کلی ---------- */

.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: var(--header-height) 20px 20px;
    background: var(--bg);
    box-sizing: border-box;
}

.auth-card {
    background: var(--card-bg);
    padding: var(--modal-padding);
    border-radius: var(--border-radius);
    width: 100%;
    max-width: 420px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: 0.3s;
}

.auth-card h2 {
    margin-bottom: 8px;
    font-size: 1.5rem;
}

.auth-card p {
    margin-bottom: 20px;
    font-size: 0.95rem;
    color: var(--muted);
}

/* ---------- فیلد شماره تلفن ---------- */

.input-group input {
    width: 100%;
    height: var(--input-height);
    padding: 0 var(--input-padding);
    background: var(--card-bg);
    color: var(--text);
    transition: 0.25s border-color, 0.25s box-shadow;
    text-align: center;
    color: var(--muted);
    border-radius: 14px;
    font-size: 1.6rem;
    font-weight: 600;
    border: 2px solid #ddd;
}

.input-group input:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 2px rgba(152, 127, 91, 0.25);
}
.input-group input::placeholder {
  color: #b9b9b9;   /* رنگ خاکستری روشن */
  opacity: 0.5;     /* محوتر */
}

.input-group input:-ms-input-placeholder { 
  color: #b9b9b9;
  opacity: 0.5;
}

.input-group input::-ms-input-placeholder { 
  color: #b9b9b9;
  opacity: 0.5;
}

/* ---------- دکمه‌ها ---------- */

.cta-btn {
    width: 100%;
    height: var(--input-height);
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    margin-top: 20px;
    transition: 0.3s;
}

.cta-btn:hover {
    background: var(--accent-hover);
}

.cta-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.cta-btn.verify-btn {
    margin-top: 24px;
}

/* ---------- یادآوری ---------- */

.remember-me {
    font-size: 0.9rem;
    margin: 20px 0 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-start;
}

.remember-me input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
    cursor: pointer;
}

/* ---------- OTP ---------- */

.otp-inputs {
    direction: ltr !important;
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 25px 0 20px;
    flex-wrap: wrap;
}

.otp-inputs input {
    width: 60px;
    height: 60px;
    color: var(--muted);
    border-radius: 14px;
    font-size: 1.6rem;
    font-weight: 600;
    text-align: center;
    border: 2px solid #ddd;
    background: var(--card-bg);
    transition: 0.25s;
}

.otp-inputs input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(152, 127, 91, 0.25);
    outline: none;
}

/* ---------- لینک و تایمر ---------- */

.edit-number {
    margin-top: -8px;
    margin-bottom: 20px;
    background: none;
    border: none;
    color: var(--accent);
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: underline;
}

.edit-number:hover {
    color: #987f5b;
}

.otp-actions-center {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.timer-text,
#timer {
    font-size: 1rem;
    color: var(--accent);
    font-weight: 600;
}

.resend-btn {
    border: none;
    background: transparent;
    color: var(--muted);
    font-size: 0.9rem;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 8px;
    transition: 0.2s ease;
}

.resend-btn:hover:not(:disabled) {
    background: rgba(152, 127, 91, 0.388);
}

.resend-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ---------- انیمیشن بین مراحل ---------- */

.step-box {
    opacity: 0;
    transform: translateX(40px);
    transition: 0.35s ease;
}

.step-box.show {
    opacity: 1;
    transform: translateX(0);
}

.step-box.hidden {
    display: none;
}

/* ---------- Toast ---------- */

#toastContainer {
    position: fixed;
    top: 38px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.toast {
    min-width: 240px;
    padding: 12px 18px;
    border-radius: 12px;
    text-align: center;
    font-weight: 500;
    opacity: 0;
    transform: translateY(-12px);
    transition: 0.25s ease;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast.success {
    background: #2ecc71;
    color: #fff;
}

.toast.error {
    background: #e74c3c;
    color: #fff;
}

/* ---------- ریسپانسیو ---------- */

/* موبایل‌های کوچک (عرض کمتر از 400px) */
@media (max-width: 400px) {
    .auth-card {
        padding: 25px 20px;
        max-width: 340px;
    }

    .otp-inputs input {
        width: 48px;
        height: 52px;
        font-size: 1.4rem;
    }

    .cta-btn {
        font-size: 0.95rem;
    }

    .toast {
        min-width: 200px;
        font-size: 0.85rem;
    }
}

/* تبلت‌ها (400px تا 768px) */
@media (max-width: 768px) {
    .auth-card {
        max-width: 380px;
        padding: 30px;
    }

    .otp-inputs {
        gap: 10px;
    }

    .otp-inputs input {
        width: 55px;
        height: 55px;

    }
}

/* دسکتاپ‌های بزرگ */
@media (min-width: 1024px) {
    .auth-card {
        max-width: 460px;
        box-shadow: 0 12px 42px rgba(0, 0, 0, 0.1);
    }

    .otp-inputs input {
        width: 64px;
        height: 64px;
    }
}