
/* =========================================================
   ورود و ثبت‌نام | میخرم
   ========================================================= */

.auth-page {
    min-height: calc(100vh - 72px);
    padding: 60px 20px 80px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background: #0b0b0b;
}

.auth-box {
    width: 100%;
    max-width: 460px;
    padding: 35px;
    background: #111111;
    border: 1px solid #292929;
    border-radius: 14px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.35);
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-logo {
    display: block;
    margin-bottom: 10px;
    color: #d4af37;
    font-size: 25px;
    font-weight: 900;
}

.auth-header h1 {
    margin: 0 0 8px;
    color: #eeeeee;
    font-size: 25px;
    font-weight: 800;
}

.auth-header p {
    margin: 0;
    color: #888888;
    font-size: 13px;
    line-height: 1.9;
}

/* فرم */

.auth-form {
    width: 100%;
}

.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form label {
    display: block;
    margin-bottom: 8px;
    color: #dddddd;
    font-size: 13px;
    font-weight: 600;
}

.auth-form input {
    width: 100%;
    height: 50px;
    padding: 0 14px;
    background: #181818;
    color: #eeeeee;
    border: 1px solid #303030;
    border-radius: 8px;
    outline: none;
    font-family: "Vazirmatn", Tahoma, sans-serif;
    font-size: 14px;
    transition: 0.2s ease;
}

.auth-form input::placeholder {
    color: #666666;
}

.auth-form input:focus {
    border-color: #d4af37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.10);
}

/* دکمه ورود */

.auth-submit {
    width: 100%;
    height: 52px;
    margin-top: 5px;
    border: 1px solid #d4af37;
    border-radius: 8px;
    background: #d4af37;
    color: #111111;
    font-family: "Vazirmatn", Tahoma, sans-serif;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: 0.2s ease;
}

.auth-submit:hover {
    background: #e4c354;
    transform: translateY(-1px);
}

/* پیام خطا */

.auth-page .error-message {
    margin-bottom: 22px;
    padding: 13px 15px;
    background: #211313;
    border: 1px solid #613131;
    border-radius: 8px;
    color: #ef8585;
    font-size: 13px;
    line-height: 2;
}

/* پایین فرم */

.auth-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #252525;
    font-size: 12px;
}

.auth-footer span {
    color: #777777;
}

.auth-footer a {
    color: #d4af37;
    font-weight: 700;
}

.auth-footer a:hover {
    color: #e4c354;
}

/* =========================================================
   حالت روشن
   ========================================================= */

body.light-mode .auth-page {
    background: #f5f5f5;
}

body.light-mode .auth-box {
    background: #ffffff;
    border-color: #d5d5d5;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.08);
}

body.light-mode .auth-logo {
    color: #b99012;
}

body.light-mode .auth-header h1 {
    color: #333333;
}

body.light-mode .auth-header p {
    color: #777777;
}

body.light-mode .auth-form label {
    color: #444444;
}

body.light-mode .auth-form input {
    background: #fafafa;
    color: #333333;
    border-color: #d5d5d5;
}

body.light-mode .auth-form input::placeholder {
    color: #999999;
}

body.light-mode .auth-form input:focus {
    border-color: #c49a18;
}

body.light-mode .auth-page .error-message {
    background: #fff1f1;
    border-color: #e2b7b7;
    color: #a33a3a;
}

body.light-mode .auth-footer {
    border-top-color: #e5e5e5;
}

body.light-mode .auth-footer span {
    color: #777777;
}

body.light-mode .auth-footer a {
    color: #a27d0c;
}

/* =========================================================
   موبایل
   ========================================================= */

@media (max-width: 600px) {

    .auth-page {
        padding: 35px 15px 60px;
    }

    .auth-box {
        padding: 25px 20px;
        border-radius: 10px;
    }

    .auth-header h1 {
        font-size: 22px;
    }

    .auth-logo {
        font-size: 23px;
    }

}

/* =========================================================
   مراحل OTP
   ========================================================= */

.auth-step {
    display: none;
}

.auth-step.active {
    display: block;
    animation: authFadeIn 0.3s ease;
}

@keyframes authFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* دکمه تغییر شماره */
.auth-change-phone {
    width: 100%;
    height: 44px;
    margin-top: 12px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #d4af37;
    font-family: "Vazirmatn", Tahoma, sans-serif;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s ease;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.auth-change-phone:hover {
    color: #e4c354;
}
/* ثانیه‌شمار */

.auth-timer {
    margin-top: 12px;
    text-align: center;
    color: #888888;
    font-size: 12px;
}

.auth-timer strong {
    color: #d4af37;
    font-weight: 800;
}

/* دکمه غیرفعال */

.auth-submit:disabled,
.auth-change-phone:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* حالت روشن */

body.light-mode .auth-change-phone {
    border-color: #d5d5d5;
    color: #777777;
}

body.light-mode .auth-change-phone:hover {
    background: #f0f0f0;
    color: #333333;
}

body.light-mode .auth-timer {
    color: #777777;
}

body.light-mode .auth-timer strong {
    color: #a27d0c;
}