/* ============================================================
   پاشا ایپک — صفحه ورود سفارشی
   ============================================================ */

:root {
    --pasha-orange: #ff6b35;
    --pasha-orange-dark: #e55a2b;
    --pasha-orange-light: #ffa278;
    --pasha-bg-1: #fff7f2;
    --pasha-bg-2: #ffeadb;
}

/* ✨ کانتینر اصلی صفحه login فول‌اسکرین — خنثی کردن padding و max-width Filament */
html, body {
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.fi-body {
    background: linear-gradient(135deg, var(--pasha-bg-1) 0%, var(--pasha-bg-2) 100%) !important;
    min-height: 100vh !important;
    height: 100vh !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
}

/* راه قطعی: <main> رو position fixed می‌کنیم تا margin اصلاً معنا نده */
.fi-simple-layout,
.fi-simple-main-ctn,
.fi-simple-page,
.fi-simple-page-content {
    max-width: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

main.fi-simple-main,
main.fi-simple-main.fi-width-lg,
body.fi-body main.fi-simple-main.fi-width-lg {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    margin-block: 0 !important;
    margin-inline: 0 !important;
    padding: 0 !important;
    padding-block: 0 !important;
    padding-inline: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    overflow: hidden !important;
    z-index: 1 !important;
}

/* مخفی کردن فقط هدر/لوگوی پیش‌فرض Filament — ولی NOT اون wildcard هایی که .pasha-login رو هم هایلایت می‌کرد */
.fi-simple-header,
.fi-simple-page-header,
.fi-simple-page > h1,
.fi-simple-page > .fi-simple-header-heading,
.fi-logo,
.fi-simple-main > a.fi-logo,
.fi-simple-main > a[href*="logout"] {
    display: none !important;
}

.pasha-login {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 16px !important;
    font-family: 'Vazirmatn', sans-serif !important;
    overflow: hidden !important;
    margin: 0 !important;
    z-index: 1 !important;
}

/* ============================================================
   پس‌زمینه دکوراتیو
   ============================================================ */
.pasha-login__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.pasha-login__bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 107, 53, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 107, 53, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
}

.pasha-login__bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.45;
}

.pasha-login__bg-orb--1 {
    width: 380px;
    height: 380px;
    background: var(--pasha-orange);
    top: -100px;
    right: -100px;
    animation: pasha-float 18s ease-in-out infinite;
}

.pasha-login__bg-orb--2 {
    width: 320px;
    height: 320px;
    background: #ffa278;
    bottom: -80px;
    left: 10%;
    animation: pasha-float 22s ease-in-out infinite reverse;
}

.pasha-login__bg-orb--3 {
    width: 260px;
    height: 260px;
    background: #ffd2b3;
    top: 40%;
    left: -100px;
    animation: pasha-float 26s ease-in-out infinite;
}

@keyframes pasha-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%      { transform: translate(40px, -30px) scale(1.05); }
    66%      { transform: translate(-30px, 40px) scale(0.97); }
}

/* ============================================================
   ساختار کلی
   ============================================================ */
.pasha-login .pasha-login__wrap {
    position: relative !important;
    z-index: 1 !important;
    width: 100% !important;
    max-width: 1080px !important;
    max-height: calc(100vh - 32px) !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 0 !important;
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-radius: 24px !important;
    overflow: hidden !important;
    box-shadow:
        0 30px 60px -15px rgba(255, 107, 53, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.5) inset !important;
}

/* ============================================================
   ستون چپ — برند
   ============================================================ */
.pasha-login__brand {
    background: linear-gradient(135deg, var(--pasha-orange) 0%, var(--pasha-orange-dark) 100%);
    color: white;
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.pasha-login__brand::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.10) 0%, transparent 50%);
    pointer-events: none;
}

.pasha-login__brand-logo {
    width: 72px;
    height: 72px;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 18px;
    display: grid;
    place-items: center;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
}

.pasha-login__brand-mark {
    font-size: 36px;
    font-weight: 800;
    color: white;
    line-height: 1;
}

.pasha-login__brand-title {
    font-size: 34px;
    font-weight: 800;
    margin: 0 0 6px;
    position: relative;
    z-index: 1;
    line-height: 1.2;
}

.pasha-login__brand-sub {
    font-size: 12px;
    letter-spacing: 0.2em;
    opacity: 0.85;
    margin: 0 0 24px;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    position: relative;
    z-index: 1;
}

.pasha-login__brand-desc {
    font-size: 15px;
    line-height: 1.7;
    opacity: 0.95;
    margin: 0 0 32px;
    position: relative;
    z-index: 1;
}

.pasha-login__brand-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 14px;
    position: relative;
    z-index: 1;
}

.pasha-login__brand-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
}

.pasha-login__brand-list li svg {
    width: 18px;
    height: 18px;
    background: rgba(255, 255, 255, 0.18);
    padding: 4px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ============================================================
   ستون راست — فرم
   ============================================================ */
.pasha-login__card {
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: white;
}

.pasha-login__card-header {
    margin-bottom: 32px;
}

.pasha-login__card-header h2 {
    font-size: 26px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 8px;
}

.pasha-login__card-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
}

/* Tab ها */
.pasha-login__tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 6px;
    background: #f3f4f6;
    border-radius: 12px;
    margin-bottom: 24px;
}

.pasha-login__tab {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 12px;
    background: transparent;
    border: 0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pasha-login__tab svg {
    width: 16px;
    height: 16px;
}

.pasha-login__tab:hover {
    color: #1f2937;
}

.pasha-login__tab.is-active {
    background: white;
    color: var(--pasha-orange);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* فرم */
.pasha-login__form {
    display: grid;
    gap: 16px;
}

.pasha-login__field {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 6px !important;
    width: 100% !important;
    min-width: 0 !important;
}

.pasha-login__label {
    display: block !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    color: #374151 !important;
    width: 100% !important;
    text-align: right !important;
}

.pasha-login__label sup {
    color: #ef4444;
    margin-inline-start: 4px;
    font-size: 14px;
}

.pasha-login__field > .pasha-login__input,
input.pasha-login__input {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 14px !important;
    margin: 0 !important;
    background: #f9fafb !important;
    border: 1.5px solid #e5e7eb !important;
    border-radius: 10px !important;
    font-family: 'Vazirmatn', sans-serif !important;
    font-size: 15px !important;
    line-height: 1.4 !important;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease !important;
    color: #1f2937 !important;
    box-shadow: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
}

.pasha-login__input:focus {
    outline: none;
    border-color: var(--pasha-orange);
    background: white;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.12);
}

/* جلوگیری از حذف استایل به‌خاطر Chrome/Edge autofill */
.pasha-login__input:-webkit-autofill,
.pasha-login__input:-webkit-autofill:hover,
.pasha-login__input:-webkit-autofill:focus,
.pasha-login__input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #f9fafb inset !important;
    -webkit-text-fill-color: #1f2937 !important;
    caret-color: #1f2937 !important;
    border: 1.5px solid #e5e7eb !important;
    border-radius: 10px !important;
    transition: background-color 9999s ease-in-out 0s !important;
    font-family: 'Vazirmatn', sans-serif !important;
    font-size: 15px !important;
}

.pasha-login__input:-webkit-autofill:focus {
    border-color: var(--pasha-orange) !important;
    -webkit-box-shadow: 0 0 0 1000px #ffffff inset, 0 0 0 3px rgba(255, 107, 53, 0.12) !important;
}

.pasha-login__input--otp {
    text-align: center;
    font-size: 24px;
    letter-spacing: 0.6em;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    padding: 14px;
}

/* Remember me */
.pasha-login__remember {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    color: #6b7280;
    cursor: pointer;
    margin: -4px 0 4px;
}

.pasha-login__remember input {
    width: 16px;
    height: 16px;
    accent-color: var(--pasha-orange);
}

/* Submit button */
.pasha-login__submit {
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, var(--pasha-orange) 0%, var(--pasha-orange-dark) 100%);
    color: white;
    border: 0;
    border-radius: 12px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(255, 107, 53, 0.3);
    margin-top: 6px;
}

.pasha-login__submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.pasha-login__submit:active {
    transform: translateY(0);
}

.pasha-login__submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.pasha-login__submit--outline {
    background: transparent;
    color: var(--pasha-orange);
    border: 2px solid var(--pasha-orange);
    box-shadow: none;
}

.pasha-login__submit--outline:hover {
    background: var(--pasha-orange);
    color: white;
}

/* Error message */
.pasha-login__error {
    color: #ef4444;
    font-size: 12.5px;
    margin: 4px 0 0;
}

/* Hint */
.pasha-login__hint {
    font-size: 12.5px;
    color: #6b7280;
    margin: 8px 0 0;
    text-align: center;
}

.pasha-login__resend {
    background: none;
    border: 0;
    color: var(--pasha-orange);
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    padding: 0;
    margin-inline-start: 4px;
}

.pasha-login__resend:hover {
    text-decoration: underline;
}

/* Footer */
.pasha-login__card-footer {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid #f3f4f6;
    text-align: center;
}

.pasha-login__card-footer small {
    color: #9ca3af;
    font-size: 12px;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
    .pasha-login__wrap {
        grid-template-columns: 1fr;
        max-width: 480px;
    }

    .pasha-login__brand {
        padding: 40px 32px 32px;
    }

    .pasha-login__brand-list {
        display: none;
    }

    .pasha-login__brand-desc {
        margin-bottom: 0;
    }

    .pasha-login__card {
        padding: 40px 32px;
    }
}

@media (max-width: 480px) {
    .pasha-login {
        padding: 16px;
    }
    .pasha-login__brand,
    .pasha-login__card {
        padding: 28px 24px;
    }
    .pasha-login__brand-title {
        font-size: 26px;
    }
}
