﻿@font-face {
    font-family: vazir;
    src: url(../fonts/Vazir.woff);
}

* {
    padding: 0;
    margin: 0;
    border: 0;
    box-sizing: border-box;
}

body {
    font-family: vazir, sans-serif;
    color: #111827;
    background: radial-gradient(circle at top, #fff4e6 0%, #f1f6ff 45%, #ffffff 100%);
}

.auth {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.auth-card {
    width: min(960px, 100%);
    background: #ffffff;
    border-radius: 26px;
    padding: 40px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
    border: 1px solid rgba(255, 140, 0, 0.12);
}

.auth-header {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 24px;
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.auth-brand img {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    border: 2px solid #ff8c00;
    padding: 6px;
}

.auth-brand h1 {
    font-size: 24px;
    margin-bottom: 6px;
}

.auth-brand p {
    font-size: 14px;
    color: #6b7280;
}

.auth-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.tab-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    padding: 12px 0;
    border-radius: 12px;
    cursor: pointer;
    font-size: 15px;
    transition: all 0.2s ease;
}

.tab-btn.active {
    background: #111827;
    color: #ffffff;
    border-color: #111827;
    box-shadow: 0 10px 20px rgba(17, 24, 39, 0.2);
}

.auth-alert {
    background: #fff7ed;
    border: 1px dashed #fdba74;
    color: #c2410c;
    font-size: 14px;
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 16px;
}

.auth-panels {
    margin-top: 12px;
}

.auth-panel {
    display: none;
    flex-direction: column;
    gap: 18px;
}

.auth-panel.active {
    display: flex;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.form-grid.single {
    grid-template-columns: 1fr;
}

.form-grid label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 14px;
    color: #374151;
}

.form-grid label span {
    font-weight: 600;
}

.form-grid input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    font-size: 14px;
    outline: none;
    transition: all 0.2s ease;
}

.form-grid input:focus {
    border-color: #ff8c00;
    box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.15);
}

.password-field {
    position: relative;
}

.toggle-password {
    position: absolute;
    left: 12px;
    top: 34px;
    background: transparent;
    cursor: pointer;
    color: #6b7280;
}

.form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 14px;
    color: #6b7280;
}

.remember,
.terms {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.link-btn {
    background: transparent;
    color: #ff8c00;
    font-size: 14px;
    cursor: pointer;
}

.link-btn a {
    color: inherit;
}

.captcha-wrap {
    display: flex;
    justify-content: flex-start;
}

.captcha-placeholder {
    border: 1px dashed #cbd5f5;
    background: #f8fafc;
    padding: 14px 18px;
    border-radius: 12px;
    color: #64748b;
    font-size: 13px;
}

.primary-btn {
    width: 100%;
    background: #ff8c00;
    color: #ffffff;
    border-radius: 12px;
    padding: 14px 0;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.primary-btn:hover {
    box-shadow: 0 12px 22px rgba(255, 140, 0, 0.25);
    transform: translateY(-1px);
}

.secondary-btn {
    width: 100%;
    background: #111827;
    color: #ffffff;
    border-radius: 12px;
    padding: 14px 0;
    font-size: 16px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

@media (max-width: 760px) {
    .auth-card {
        padding: 24px;
    }

    .auth-tabs {
        grid-template-columns: 1fr;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        flex-direction: column;
        align-items: flex-start;
    }
}
.reset-new-password { margin-top: 10px; }
.reset-new-password input { width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid #e5e7eb; font-size: 14px; outline: none; transition: all 0.2s ease; }
.reset-new-password input:focus { border-color: #ff8c00; box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.15); }
.auth-alert.success { background:#ecfdf5; border-color:#86efac; color:#166534; }
.auth-alert.error { background:#fef2f2; border-color:#fecaca; color:#b91c1c; }
.auth-alert.info { background:#eff6ff; border-color:#bfdbfe; color:#1d4ed8; }
.dashboard-grid{ display:grid; gap:12px; }
.dashboard-card{ border:1px solid #e2e8f0; border-radius:14px; padding:14px 16px; background:#fff; box-shadow:0 6px 16px rgba(15,23,42,0.06);} 
.dashboard-card-title{ font-weight:700; margin-bottom:6px; color:#0f172a; }
.dashboard-card-subtitle{ font-size:12px; color:#64748b; margin-bottom:8px; }
.dashboard-card-body{ font-size:14px; color:#0f172a; line-height:1.8; }
@media (max-width: 760px){ .dashboard-card{ padding:12px 14px; } .dashboard-card-title{ font-size:15px; } .dashboard-card-body{ font-size:13px; } }
