/**
 * تم مدرن و زیبایانه‌ی فرم‌های Shahrokh Login
 * این فایل بعد از style.css بارگذاری می‌شود و ظاهر فرم‌ها را به‌روز می‌کند.
 */

:root {
    --shk-primary: #4f46e5;
    --shk-primary-2: #7c3aed;
    --shk-primary-dark: #4338ca;
    --shk-ring: rgba(79, 70, 229, 0.18);
    --shk-text: #1f2937;
    --shk-muted: #6b7280;
    --shk-border: #e5e7eb;
    --shk-bg-soft: #f9fafb;
    --shk-radius: 16px;
    --shk-radius-sm: 12px;
}

/* پس‌زمینه و کانتینر */
.shahrokh-login-wrapper {
    padding: 32px 16px !important;
}

.shahrokh-login-wrapper .shahrokh-login-container,
.shahrokh-login-wrapper .shahrokh-auth-container,
.shahrokh-auth-container.shahrokh-auth-container {
    max-width: 460px !important;
    padding: 40px 36px !important;
    border-radius: var(--shk-radius) !important;
    background: #ffffff !important;
    border: 1px solid #eef0f4 !important;
    box-shadow: 0 10px 40px rgba(17, 24, 39, 0.08), 0 2px 8px rgba(17, 24, 39, 0.04) !important;
    position: relative !important;
    overflow: hidden !important;
}

/* نوار رنگی بالای کارت */
.shahrokh-login-wrapper .shahrokh-login-container::before,
.shahrokh-login-wrapper .shahrokh-auth-container::before {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 5px !important;
    background: linear-gradient(90deg, var(--shk-primary), var(--shk-primary-2)) !important;
}

/* عنوان */
.shahrokh-login-wrapper .shahrokh-form-title,
.shahrokh-auth-container .shahrokh-form-title,
.shahrokh-login-wrapper h2.shahrokh-form-title,
.shahrokh-auth-container h2.shahrokh-form-title {
    font-size: 26px !important;
    font-weight: 700 !important;
    color: var(--shk-text) !important;
    margin-bottom: 28px !important;
    letter-spacing: -0.3px !important;
}

/* تب‌ها به سبک پیل (pill) */
.shahrokh-login-wrapper .shahrokh-tabs,
.shahrokh-auth-container .shahrokh-tabs {
    background: var(--shk-bg-soft) !important;
    border: 1px solid var(--shk-border) !important;
    border-radius: var(--shk-radius-sm) !important;
    padding: 6px !important;
    gap: 6px !important;
    margin-bottom: 28px !important;
}

.shahrokh-login-wrapper .shahrokh-tab-btn,
.shahrokh-auth-container .shahrokh-tab-btn,
.shahrokh-login-wrapper button.shahrokh-tab-btn,
.shahrokh-auth-container button.shahrokh-tab-btn {
    border: none !important;
    border-radius: 9px !important;
    bottom: 0 !important;
    padding: 11px 16px !important;
    color: var(--shk-muted) !important;
    font-weight: 600 !important;
    transition: all 0.25s ease !important;
}

.shahrokh-login-wrapper .shahrokh-tab-btn:hover,
.shahrokh-auth-container .shahrokh-tab-btn:hover,
.shahrokh-login-wrapper button.shahrokh-tab-btn:hover,
.shahrokh-auth-container button.shahrokh-tab-btn:hover {
    color: var(--shk-primary) !important;
    background: transparent !important;
}

.shahrokh-login-wrapper .shahrokh-tab-btn.active,
.shahrokh-auth-container .shahrokh-tab-btn.active,
.shahrokh-login-wrapper button.shahrokh-tab-btn.active,
.shahrokh-auth-container button.shahrokh-tab-btn.active {
    color: var(--shk-primary) !important;
    background: #ffffff !important;
    border-bottom-color: transparent !important;
    box-shadow: 0 2px 6px rgba(17, 24, 39, 0.08) !important;
}

/* برچسب‌ها */
.shahrokh-login-wrapper .shahrokh-form-group label,
.shahrokh-auth-container .shahrokh-form-group label {
    color: var(--shk-text) !important;
    font-weight: 600 !important;
    margin-bottom: 7px !important;
}

/* ورودی‌ها */
.shahrokh-login-wrapper .shahrokh-form-input,
.shahrokh-auth-container .shahrokh-form-input,
.shahrokh-login-wrapper input.shahrokh-form-input,
.shahrokh-auth-container input.shahrokh-form-input,
.shahrokh-login-wrapper textarea.shahrokh-form-input,
.shahrokh-auth-container textarea.shahrokh-form-input,
.shahrokh-login-wrapper select.shahrokh-form-input,
.shahrokh-auth-container select.shahrokh-form-input {
    padding: 13px 16px !important;
    border: 1.5px solid var(--shk-border) !important;
    border-radius: var(--shk-radius-sm) !important;
    background: var(--shk-bg-soft) !important;
    font-size: 15px !important;
    color: var(--shk-text) !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease !important;
}

.shahrokh-login-wrapper .shahrokh-form-input:focus,
.shahrokh-auth-container .shahrokh-form-input:focus,
.shahrokh-login-wrapper input.shahrokh-form-input:focus,
.shahrokh-auth-container input.shahrokh-form-input:focus,
.shahrokh-login-wrapper textarea.shahrokh-form-input:focus,
.shahrokh-auth-container textarea.shahrokh-form-input:focus,
.shahrokh-login-wrapper select.shahrokh-form-input:focus,
.shahrokh-auth-container select.shahrokh-form-input:focus {
    border-color: var(--shk-primary) !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 4px var(--shk-ring) !important;
}

.shahrokh-login-wrapper .shahrokh-form-input::placeholder,
.shahrokh-auth-container .shahrokh-form-input::placeholder {
    color: #9ca3af !important;
}

/* دکمه‌ها */
.shahrokh-login-wrapper .shahrokh-btn,
.shahrokh-auth-container .shahrokh-btn,
.shahrokh-login-wrapper button.shahrokh-btn,
.shahrokh-auth-container button.shahrokh-btn,
.shahrokh-login-wrapper a.shahrokh-btn,
.shahrokh-auth-container a.shahrokh-btn {
    padding: 14px 28px !important;
    border-radius: var(--shk-radius-sm) !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    background: linear-gradient(135deg, var(--shk-primary), var(--shk-primary-2)) !important;
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.28) !important;
    transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease !important;
}

.shahrokh-login-wrapper .shahrokh-btn-primary,
.shahrokh-auth-container .shahrokh-btn-primary,
.shahrokh-login-wrapper button.shahrokh-btn-primary,
.shahrokh-auth-container button.shahrokh-btn-primary {
    background: linear-gradient(135deg, var(--shk-primary), var(--shk-primary-2)) !important;
}

.shahrokh-login-wrapper .shahrokh-btn:hover,
.shahrokh-auth-container .shahrokh-btn:hover,
.shahrokh-login-wrapper button.shahrokh-btn:hover,
.shahrokh-auth-container button.shahrokh-btn:hover,
.shahrokh-login-wrapper a.shahrokh-btn:hover,
.shahrokh-auth-container a.shahrokh-btn:hover {
    background: linear-gradient(135deg, var(--shk-primary-dark), var(--shk-primary)) !important;
    box-shadow: 0 10px 22px rgba(79, 70, 229, 0.34) !important;
    transform: translateY(-1px) !important;
    filter: saturate(1.05) !important;
}

.shahrokh-login-wrapper .shahrokh-btn:active,
.shahrokh-auth-container .shahrokh-btn:active,
.shahrokh-login-wrapper button.shahrokh-btn:active,
.shahrokh-auth-container button.shahrokh-btn:active {
    transform: translateY(0) !important;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.26) !important;
}

.shahrokh-login-wrapper .shahrokh-btn-secondary,
.shahrokh-auth-container .shahrokh-btn-secondary,
.shahrokh-login-wrapper button.shahrokh-btn-secondary,
.shahrokh-auth-container button.shahrokh-btn-secondary {
    background: #eef2ff !important;
    color: var(--shk-primary-dark) !important;
    box-shadow: none !important;
}

.shahrokh-login-wrapper .shahrokh-btn-secondary:hover,
.shahrokh-auth-container .shahrokh-btn-secondary:hover,
.shahrokh-login-wrapper button.shahrokh-btn-secondary:hover,
.shahrokh-auth-container button.shahrokh-btn-secondary:hover {
    background: #e0e7ff !important;
    color: var(--shk-primary-dark) !important;
    box-shadow: none !important;
}

/* لینک‌های فوتر */
.shahrokh-login-wrapper .shahrokh-form-footer,
.shahrokh-auth-container .shahrokh-form-footer {
    margin-top: 22px !important;
    padding-top: 20px !important;
    border-top: 1px solid #f1f2f5 !important;
}

.shahrokh-login-wrapper .shahrokh-form-footer a,
.shahrokh-auth-container .shahrokh-form-footer a {
    color: var(--shk-primary) !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}

.shahrokh-login-wrapper .shahrokh-form-footer a:hover,
.shahrokh-auth-container .shahrokh-form-footer a:hover {
    color: var(--shk-primary-dark) !important;
    text-decoration: underline !important;
}

/* پیام‌ها */
.shahrokh-login-wrapper .shahrokh-message,
.shahrokh-auth-container .shahrokh-message {
    border-radius: var(--shk-radius-sm) !important;
    padding: 13px 16px !important;
    border-width: 1px !important;
    border-style: solid !important;
    font-weight: 500 !important;
}

.shahrokh-login-wrapper .shahrokh-success,
.shahrokh-auth-container .shahrokh-success {
    background: #ecfdf5 !important;
    color: #065f46 !important;
    border-color: #a7f3d0 !important;
}

.shahrokh-login-wrapper .shahrokh-error,
.shahrokh-auth-container .shahrokh-error {
    background: #fef2f2 !important;
    color: #991b1b !important;
    border-color: #fecaca !important;
}

/* واکنش‌گرا */
@media (max-width: 768px) {
    .shahrokh-login-wrapper .shahrokh-login-container,
    .shahrokh-login-wrapper .shahrokh-auth-container {
        padding: 30px 22px !important;
    }
    .shahrokh-login-wrapper .shahrokh-form-title,
    .shahrokh-auth-container .shahrokh-form-title {
        font-size: 22px !important;
    }
}
