@import url("https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;500;600;700&display=swap");

* { margin: 0; padding: 0; box-sizing: border-box; }

.auth-body {
    font-family: "Vazirmatn", Tahoma, sans-serif;
    min-height: 100vh;
    background: #0a0e1a;
    color: #e2e8f0;
    direction: rtl;
}

.auth-bg {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(59, 130, 246, 0.25), transparent),
        radial-gradient(ellipse 60% 40% at 100% 100%, rgba(139, 92, 246, 0.15), transparent),
        #0a0e1a;
    z-index: 0;
}

.auth-wrap {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #f1f5f9;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 28px;
}

.auth-logo {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
}

.auth-card {
    width: 100%;
    max-width: 400px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 20px;
    padding: 32px;
    backdrop-filter: blur(12px);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
}

.auth-card h1 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.auth-sub {
    color: #94a3b8;
    font-size: 0.9rem;
    margin-bottom: 24px;
}

.auth-alert {
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 0.88rem;
    margin-bottom: 16px;
}

.auth-alert-error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fca5a5;
}

.auth-alert-info {
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.35);
    color: #bfdbfe;
}

.input-readonly {
    opacity: 0.85;
    cursor: not-allowed;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-field label {
    display: block;
    font-size: 0.82rem;
    color: #94a3b8;
    margin-bottom: 6px;
}

.auth-field input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(15, 23, 42, 0.8);
    color: #f1f5f9;
    font-family: inherit;
    font-size: 0.95rem;
}

.auth-field input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.auth-field-hint {
    margin: 6px 0 0;
    font-size: 0.75rem;
    color: #64748b;
    line-height: 1.5;
}

.auth-btn {
    margin-top: 8px;
    padding: 14px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.2s;
}

.auth-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
}

.auth-footer-link {
    text-align: center;
    margin-top: 20px;
    font-size: 0.88rem;
    color: #64748b;
}

.auth-footer-link a {
    color: #60a5fa;
    text-decoration: none;
}

.auth-footer-link a:hover {
    text-decoration: underline;
}

@media (max-width: 480px) {
    .auth-wrap {
        padding: 16px;
        justify-content: flex-start;
        padding-top: max(24px, env(safe-area-inset-top));
    }

    .auth-card {
        padding: 24px 20px;
    }
}
