/* ============================================================
   Accounti – Login / Register Page Styles
   صفحه کاملا مستقل (بدون هدر/فوتر قالب) — همه استایل‌ها این‌جا تعریف شده
   ============================================================ */

@font-face {
    font-family: 'IRYekan';
    src: url('https://pmashop.ir/wp-content/themes/mweb-digiland-pro/assets/fonts/IRYekan-medium-fanum.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

body.accounti-login-page {
    --accl-brand: #ed6205;
    --accl-brand-light: #fff4ec;
    --accl-brand-hover: #d45700;
    --accl-bg-page: #f7f7f8;
    --accl-bg-card: #ffffff;
    --accl-border: #e5e7eb;
    --accl-text-primary: #111827;
    --accl-text-secondary: #4b5563;
    --accl-text-muted: #9ca3af;
    --accl-red: #ef4444;
    --accl-green: #10b981;
    --accl-radius-lg: 16px;
    --accl-radius-md: 12px;

    margin: 0;
    background: var(--accl-bg-page);
    font-family: 'IRYekan', IRANSans, Tahoma, Arial, sans-serif;
    -webkit-text-size-adjust: 100%;
}

body.accounti-login-page *,
body.accounti-login-page *::before,
body.accounti-login-page *::after {
    box-sizing: border-box;
}

/* ── Top bar ────────────────────────────────────────────────── */
.accl-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.accl-topbar-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--accl-text-primary);
    font-weight: 800;
    font-size: 18px;
}

.accl-topbar-brand img {
    max-height: 40px;
    width: auto;
    display: block;
}

.accl-topbar-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    color: var(--accl-text-secondary);
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--accl-bg-card);
    border: 1px solid var(--accl-border);
    transition: color .15s ease, border-color .15s ease;
    white-space: nowrap;
}

.accl-topbar-back:hover {
    color: var(--accl-brand);
    border-color: var(--accl-brand);
}

.accl-topbar-back-icon {
    font-size: 15px;
    line-height: 1;
}

/* ── Page wrap ──────────────────────────────────────────────── */
.accl-wrap {
    min-height: calc(100vh - 72px);
    padding: 24px 16px 56px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.accl-card {
    width: 100%;
    max-width: 420px;
    background: var(--accl-bg-card);
    border: 1px solid var(--accl-border);
    border-radius: var(--accl-radius-lg);
    box-shadow: 0 1px 3px rgba(17, 24, 39, .06), 0 8px 24px rgba(17, 24, 39, .06);
    overflow: hidden;
}

/* ── Radio-based tab toggle (no JS) ────────────────────────── */
.accl-tab-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.accl-tab-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid var(--accl-border);
}

.accl-tab-label {
    text-align: center;
    padding: 16px 8px;
    font-size: 14px;
    font-weight: 700;
    color: var(--accl-text-muted);
    cursor: pointer;
    transition: color .15s ease, background .15s ease;
    -webkit-user-select: none;
    user-select: none;
}

.accl-tab-label:hover {
    color: var(--accl-text-secondary);
    background: var(--accl-brand-light);
}

.accl-tab-panels {
    position: relative;
}

.accl-panel {
    display: none;
    padding: 28px 24px 32px;
    animation: accl-fade .18s ease;
}

.accl-solo {
    padding: 28px 24px 32px;
    animation: accl-fade .18s ease;
}

.accl-back-link {
    display: inline-block;
    margin-top: 18px;
}

@keyframes accl-fade {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}

#accl-tab-login:checked ~ .accl-tab-nav label[for="accl-tab-login"],
#accl-tab-register:checked ~ .accl-tab-nav label[for="accl-tab-register"] {
    color: var(--accl-brand);
    background: var(--accl-brand-light);
    box-shadow: inset 0 -2px 0 var(--accl-brand);
}

#accl-tab-login:checked ~ .accl-tab-panels .accl-panel-login,
#accl-tab-register:checked ~ .accl-tab-panels .accl-panel-register {
    display: block;
}

/* ── Titles ─────────────────────────────────────────────────── */
.accl-title {
    margin: 0 0 4px;
    font-size: 20px;
    font-weight: 800;
    color: var(--accl-text-primary);
}

.accl-subtitle {
    margin: 0 0 20px;
    font-size: 13px;
    color: var(--accl-text-secondary);
}

/* ── Alerts (custom — independent of theme's woocommerce.css) ─ */
.accl-alert {
    margin: 0 0 16px;
    padding: 11px 14px;
    border-radius: var(--accl-radius-md);
    font-size: 13px;
    line-height: 1.8;
}

.accl-alert--error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.accl-alert--success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.accl-alert--info {
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

/* ── Form ───────────────────────────────────────────────────── */
.accl-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.accl-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.accl-field label {
    font-size: 13px;
    font-weight: 600;
    color: var(--accl-text-secondary);
}

.accl-field input[type="text"],
.accl-field input[type="email"],
.accl-field input[type="password"] {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--accl-border);
    border-radius: var(--accl-radius-md);
    font-family: inherit;
    /* 16px حداقل تا سافاری موبایل روی فوکوس زوم نکنه */
    font-size: 16px;
    color: var(--accl-text-primary);
    background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease;
    -webkit-appearance: none;
    appearance: none;
}

.accl-field input:focus {
    outline: none;
    border-color: var(--accl-brand);
    box-shadow: 0 0 0 3px rgba(237, 98, 5, .12);
}

.accl-hint {
    font-size: 11.5px;
    color: var(--accl-text-muted);
    line-height: 1.6;
}

.accl-field--inline {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.accl-checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--accl-text-secondary);
    cursor: pointer;
    font-weight: 400;
}

.accl-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
}

.accl-link {
    font-size: 12px;
    color: var(--accl-brand);
    text-decoration: none;
}

.accl-link:hover {
    color: var(--accl-brand-hover);
    text-decoration: underline;
}

.accl-submit {
    margin-top: 4px;
    padding: 13px 16px;
    border: none;
    border-radius: var(--accl-radius-md);
    background: var(--accl-brand);
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s ease, transform .05s ease;
    -webkit-tap-highlight-color: transparent;
}

.accl-submit:hover { background: var(--accl-brand-hover); }
.accl-submit:active { transform: translateY(1px); }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 600px) {
    .accl-topbar { padding: 14px 16px; }
    .accl-topbar-brand { font-size: 16px; }
    .accl-topbar-back { font-size: 12px; padding: 7px 12px; }
}

@media (max-width: 480px) {
    .accl-wrap { padding: 12px 12px 40px; align-items: stretch; }
    .accl-card { max-width: 100%; border-radius: var(--accl-radius-md); }
    .accl-panel,
    .accl-solo { padding: 22px 16px 26px; }
    .accl-tab-label { padding: 14px 6px; font-size: 13px; }
    .accl-title { font-size: 18px; }
    .accl-field--inline { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 360px) {
    .accl-topbar-back-text { display: none; }
}
