/**
 * استایل‌های فرآیند گام‌به‌گام
 * نسخه 1.3.0
 */

/* ===== اعمال فونت ===== */
#cua-step-login-wrapper,
#cua-step-login-wrapper * {
    font-family: 'IRANSansX', 'IRANSans', 'Tahoma', 'Arial', sans-serif !important;
}

#cua-step-login-wrapper {
    max-width: 500px;
    margin: 30px auto;
    padding: 30px 35px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 25px rgba(0,0,0,0.07);
    direction: rtl;
    border: 1px solid #eef0f2;
    box-sizing: border-box;
}
.cua-step-container {
    display: none;
}
.cua-step-container:first-of-type {
    display: block;
}
.cua-step-container h2 {
    margin-top: 0;
    margin-bottom: 8px;
    color: #1a1a1a;
    font-size: 24px;
    font-weight: 700;
}
.cua-step-container p {
    color: #6b7280;
    font-size: 15px;
    margin-bottom: 20px;
    line-height: 1.6;
}
.cua-step-field {
    display: flex;
    gap: 12px;
    margin: 18px 0;
    flex-wrap: wrap;
}
.cua-step-field input {
    flex: 1;
    min-width: 200px;
    padding: 14px 18px;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s, box-shadow 0.3s;
    font-family: inherit;
    box-sizing: border-box;
    background: #fafbfc;
}
.cua-step-field input:focus {
    border-color: #007cba;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0,124,186,0.12);
    background: #ffffff;
}
.cua-step-field input::placeholder {
    color: #9ca3af;
}
.cua-step-field .button {
    padding: 14px 28px;
    background: #007cba;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background 0.2s, transform 0.1s;
    font-family: inherit;
    white-space: nowrap;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cua-step-field .button:hover {
    background: #005f8c;
}
.cua-step-field .button:active {
    transform: scale(0.97);
}
.cua-step-field .button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}
.cua-step-msg {
    margin: 12px 0;
    font-weight: 500;
    font-size: 14px;
    padding: 10px 14px;
    border-radius: 6px;
}
.cua-step-msg[style*="color: #ff0000"] {
    background: #fef2f2;
    color: #dc2626 !important;
}
.cua-step-msg[style*="color: #008000"] {
    background: #f0fdf4;
    color: #16a34a !important;
}
.cua-step-timer {
    margin: 14px 0;
    color: #4b5563;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.cua-step-timer .button-link {
    background: none;
    border: none;
    color: #007cba;
    cursor: pointer;
    text-decoration: underline;
    font-size: 14px;
    font-family: inherit;
    padding: 4px 8px;
}
.cua-step-timer .button-link:disabled {
    color: #9ca3af;
    text-decoration: none;
    cursor: default;
}
.cua-step-forgot {
    margin: 14px 0;
}
.cua-step-forgot a {
    color: #007cba;
    text-decoration: underline;
    cursor: pointer;
    font-size: 14px;
    font-family: inherit;
}
.cua-step-forgot a:hover {
    color: #005f8c;
}
.cua-step-timer #cua-timer,
.cua-step-timer #cua-reset-timer {
    font-weight: 700;
    color: #007cba;
    font-size: 18px;
    min-width: 28px;
    display: inline-block;
    text-align: center;
}

/* ===== واکنش‌گرایی برای موبایل ===== */
@media (max-width: 768px) {
    #cua-step-login-wrapper {
        margin: 12px 10px;
        padding: 20px 16px;
        border-radius: 12px;
    }
    .cua-step-container h2 {
        font-size: 20px;
        margin-bottom: 4px;
    }
    .cua-step-container p {
        font-size: 14px;
        margin-bottom: 14px;
    }
    .cua-step-field {
        flex-direction: column;
        gap: 10px;
        margin: 12px 0;
    }
    .cua-step-field input {
        min-width: auto;
        width: 100%;
        padding: 14px 16px;
        font-size: 16px;
        border-radius: 8px;
    }
    .cua-step-field .button {
        width: 100%;
        padding: 14px 20px;
        font-size: 16px;
        border-radius: 8px;
        white-space: normal;
        min-height: 50px;
    }
    .cua-step-timer {
        font-size: 13px;
        gap: 8px;
        justify-content: center;
    }
    .cua-step-timer .button-link {
        font-size: 13px;
    }
    .cua-step-msg {
        font-size: 13px;
        padding: 8px 12px;
        margin: 8px 0;
    }
    .cua-step-forgot a {
        font-size: 13px;
    }
    .cua-step-timer #cua-timer,
    .cua-step-timer #cua-reset-timer {
        font-size: 16px;
        min-width: 24px;
    }
}

/* ===== صفحه‌های بسیار کوچک ===== */
@media (max-width: 400px) {
    #cua-step-login-wrapper {
        margin: 8px 4px;
        padding: 14px 10px;
        border-radius: 10px;
    }
    .cua-step-container h2 {
        font-size: 18px;
    }
    .cua-step-container p {
        font-size: 13px;
        margin-bottom: 10px;
    }
    .cua-step-field input {
        padding: 12px 14px;
        font-size: 15px;
        border-radius: 6px;
    }
    .cua-step-field .button {
        padding: 12px 16px;
        font-size: 15px;
        min-height: 46px;
        border-radius: 6px;
    }
    .cua-step-msg {
        font-size: 12px;
        padding: 6px 10px;
    }
    .cua-step-timer {
        font-size: 12px;
        gap: 5px;
    }
    .cua-step-timer .button-link {
        font-size: 12px;
    }
    .cua-step-timer #cua-timer,
    .cua-step-timer #cua-reset-timer {
        font-size: 14px;
        min-width: 20px;
    }
}

/* ===== حالت دسکتاپ ===== */
@media (min-width: 769px) {
    .cua-step-field input {
        min-width: 220px;
    }
}