/**
 * sign_auth_modal.css — نافذة التسجيل/الدخول ونافذة الشروط (طابع موحّد)
 */
.sign-auth-overlay,
.itq-modal-overlay.sign-auth-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 4000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.sign-auth-overlay:not(.hidden),
.itq-modal-overlay.sign-auth-modal.active {
    display: flex;
}
.sign-auth-overlay.hidden {
    display: none;
}

.sign-auth-card {
    background: #fff;
    border-radius: 16px;
    max-width: 400px;
    width: 100%;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    animation: signAuthIn 0.22s ease-out;
}
@keyframes signAuthIn {
    from { transform: translateY(16px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.sign-auth-body {
    padding: 32px 28px 20px;
    text-align: center;
    direction: rtl;
}

.sign-auth-icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #fef2f2;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
}
.sign-auth-icon-wrap i {
    font-size: 26px;
    color: #dc2626;
}

.sign-auth-body h4 {
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    color: #111;
    margin: 0 0 8px;
    font-size: 1.15rem;
}

.sign-auth-sub {
    color: #666;
    font-size: 14px;
    margin: 0 0 18px;
    line-height: 1.55;
    text-align: center;
}
.sign-auth-sub a {
    color: #e5322d;
    font-weight: 600;
    text-decoration: none;
}
.sign-auth-sub a:hover {
    text-decoration: underline;
}

.sign-auth-check {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 10px;
    margin: 0 0 16px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    text-align: right;
}
.sign-auth-check input {
    width: 18px;
    height: 18px;
    accent-color: #111;
    margin-top: 2px;
    flex-shrink: 0;
    cursor: pointer;
}

.sign-auth-google-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 11px 14px;
    background: #fff;
    font-weight: 600;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    margin-bottom: 14px;
    transition: background .15s;
}
.sign-auth-google-btn:hover { background: #f9fafb; }
.sign-auth-google-btn i { color: #4285f4; font-size: 18px; }

.sign-auth-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    color: #999;
    font-size: 12px;
}
.sign-auth-divider::before,
.sign-auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #eee;
}

.sign-auth-fields { text-align: right; }
.sign-auth-field { margin-bottom: 10px; }
.sign-auth-field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #555;
    margin-bottom: 4px;
}
.sign-auth-input-wrap { position: relative; }
.sign-auth-input-wrap i {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 14px;
}
.sign-auth-input-wrap input {
    width: 100%;
    padding: 11px 36px 11px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    box-sizing: border-box;
}

.sign-auth-error {
    color: #c0392b;
    font-size: 13px;
    margin-bottom: 10px;
    display: none;
    text-align: right;
}

.sign-auth-switch {
    text-align: center;
    margin-top: 4px;
    font-size: 13px;
}
.sign-auth-switch a {
    color: #e5322d;
    font-weight: 700;
    text-decoration: none;
}
.sign-auth-switch a:hover {
    text-decoration: underline;
}

.sign-auth-terms-note {
    font-size: 11px;
    color: #888;
    text-align: center;
    margin-top: 10px;
    line-height: 1.5;
}

.sign-auth-footer {
    display: flex;
    border-top: 1px solid #f0f0f0;
}
.sign-auth-footer button,
.sign-auth-footer a.sign-auth-footer-link {
    flex: 1;
    padding: 14px;
    border: none;
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: background .2s;
    text-align: center;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sign-auth-cancel {
    background: #fff;
    color: #555;
}
.sign-auth-cancel:hover { background: #f9f9f9; }
.sign-auth-submit {
    background: #000;
    color: #fff;
    border-right: 1px solid #f0f0f0;
}
.sign-auth-submit:hover:not(:disabled) { background: #222; }
.sign-auth-submit:disabled {
    background: #666;
    cursor: not-allowed;
}
.sign-auth-footer--single .sign-auth-submit {
    border-right: none;
}
