@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/vazirmatn/Vazirmatn-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/vazirmatn/Vazirmatn-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --pe-primary: #1f4b99;
    --pe-primary-dark: #16386f;
    --pe-bg: #f4f7fb;
    --pe-card: #ffffff;
    --pe-text: #1f2937;
    --pe-muted: #6b7280;
    --pe-border: #dbe3ef;
    --pe-success: #0f766e;
    --pe-error: #b91c1c;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    background: linear-gradient(180deg, #eef4ff 0%, var(--pe-bg) 40%);
    color: var(--pe-text);
    line-height: 1.8;
}

.auth-shell {
    max-width: 520px;
    margin: 0 auto;
    padding: 1.25rem;
}

.auth-header {
    text-align: center;
    margin-bottom: 1rem;
}

.brand {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--pe-primary);
}

.subtitle {
    margin: 0.25rem 0 0;
    color: var(--pe-muted);
}

.auth-card {
    background: var(--pe-card);
    border: 1px solid var(--pe-border);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(31, 75, 153, 0.08);
}

.auth-title {
    margin: 0 0 0.5rem;
    font-size: 1.25rem;
}

.auth-lead {
    margin: 0 0 1.25rem;
    color: var(--pe-muted);
    font-size: 0.95rem;
}

.auth-form .field {
    display: block;
    margin-bottom: 1rem;
}

.auth-form .field span {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.auth-form input[type="email"],
.auth-form input[type="password"] {
    width: 100%;
    border: 1px solid var(--pe-border);
    border-radius: 10px;
    padding: 0.65rem 0.75rem;
    font: inherit;
    background: #fff;
}

.password-field {
    display: flex;
    gap: 0.5rem;
}

.password-field input { flex: 1; }

.password-toggle {
    border: 1px solid var(--pe-border);
    background: #fff;
    border-radius: 10px;
    padding: 0 0.75rem;
    cursor: pointer;
    font: inherit;
    color: var(--pe-primary);
}

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    border: 0;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.btn-primary {
    background: var(--pe-primary);
    color: #fff;
}

.btn-primary:disabled {
    opacity: 0.65;
    cursor: wait;
}

.alert {
    border-radius: 10px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: var(--pe-error);
}

.alert-success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: var(--pe-success);
}

.alert ul { margin: 0; padding-inline-start: 1.25rem; }

@media (min-width: 640px) {
    .auth-shell { padding-top: 2.5rem; }
}
