/* assets/css/create-ad.css */

/* ================== Modal Styles ================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.auth-box {
    background: #fff;
    width: 100%;
    max-width: 400px;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .auth-box {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 15px;
    left: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

/* ================== Auth Header & Inputs ================== */
.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h2 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: #666;
    font-size: 0.9rem;
}

.input-group {
    margin-bottom: 1.5rem;
    text-align: right;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 500;
}

.input-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.input-group input:focus {
    border-color: #2563eb;
    outline: none;
}

.btn-submit {
    width: 100%;
    padding: 12px;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-submit:hover {
    background: #1d4ed8;
}

/* ================== OTP Input Styles ================== */
.otp-container {
    display: flex;
    gap: 10px;
    justify-content: center;
    direction: ltr;
    margin: 20px 0;
}

.otp-input {
    width: 50px;
    height: 50px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
}

.otp-input:focus {
    border-color: #2563eb;
    outline: none;
}

/* ================== Face ID / Scanning Styles ================== */
.face-scan-box {
    width: 150px;
    height: 150px;
    background: #f3f4f6;
    border: 3px dashed #ccc;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #9ca3af;
    position: relative;
    overflow: hidden;
}

.face-scan-box.scanning::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(37, 99, 235, 0.3), transparent);
    animation: scan 1.5s infinite;
}

@keyframes scan {
    0% { top: -100%; }
    100% { top: 100%; }
}

/* ================== Helpers & Utility ================== */
.hidden-step {
    display: none !important;
}

.error-msg {
    color: #ef4444;
    font-size: 0.85rem;
    margin-top: 5px;
    display: none;
}

.edit-number {
    color: #2563eb;
    cursor: pointer;
    font-size: 0.9rem;
    text-decoration: underline;
}

/* اصلاح فونت‌ها برای ورودی‌ها */
button, input, optgroup, select, textarea {
    font-family: inherit;
}
