
/* ==================== FONT FACE (آفلاین) ==================== */
@font-face {
    font-family: 'Vazir';
    src: url('/fonts/Vazirmatn-Regular.woff2') format('woff2'),
         url('/fonts/Vazirmatn-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazir';
    src: url('/fonts/Vazirmatn-Bold.woff2') format('woff2'),
         url('/fonts/Vazirmatn-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazir';
    src: url('/fonts/Vazirmatn-Light.woff2') format('woff2'),
         url('/fonts/Vazirmatn-Light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazir';
    src: url('/fonts/Vazirmatn-Medium.woff2') format('woff2'),
         url('/fonts/Vazirmatn-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazir';
    src: url('/fonts/Vazirmatn-Thin.woff2') format('woff2'),
         url('/fonts/Vazirmatn-Thin.woff') format('woff');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}
/* ==================== RESET & MODERN BASE ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #10b981;
    --dark: #1e293b;
    --gray: #64748b;
    --light: #f8fafc;
    --danger: #ef4444;
    --warning: #f59e0b;
    --success: #22c55e;
    --gradient-start: #6366f1;
    --gradient-end: #8b5cf6;
}

body {
    font-family: 'Vazir','Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    margin: 0;
    padding: 0;
    direction: rtl;
}

/* ==================== UTILITY CLASSES ==================== */
.min-h-screen { min-height: 100vh; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.max-w-md { max-width: 28rem; }
.w-full { width: 100%; }
.mx-auto { margin-left: auto; margin-right: auto; }
.text-center { text-align: center; }
.relative { position: relative; }
.absolute { position: absolute; }
.inset-y-0 { top: 0; bottom: 0; }
.right-0 { right: 0; }
.pr-3 { padding-right: 0.75rem; }
.block { display: block; }
.cursor-pointer { cursor: pointer; }

/* Modern Card Effects - با فاصله داخلی مناسب */
.glass-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    padding: 2.5rem;
}

/* برای صفحه نمایش‌های کوچک */
@media (max-width: 640px) {
    .glass-card {
        padding: 1.75rem;
    }
}

/* Modern Form Styles */
.modern-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 1rem;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    background: white;
    font-family: inherit;
}

.modern-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.modern-input:hover {
    border-color: #cbd5e1;
}

/* فاصله بین فیلدها */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group:last-of-type {
    margin-bottom: 0;
}

.modern-button {
    width: 100%;
    padding: 0.875rem 1rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 1rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    margin-top: 0.5rem;
}

.modern-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(99, 102, 241, 0.4);
}

.modern-button:active {
    transform: translateY(0);
}

/* Modern Logo */
.modern-logo {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 20px 40px -12px rgba(99, 102, 241, 0.3);
}

/* فاصله بین عنوان و زیرعنوان */
.logo-section {
    margin-bottom: 2rem;
}

.modern-checkbox {
    width: 1.2rem;
    height: 1.2rem;
    accent-color: var(--primary);
    cursor: pointer;
    margin-left: 0.5rem;
}

/* Modern Links */
.modern-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}

.modern-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Alert Styles */
.alert-modern {
    padding: 1rem;
    border-radius: 1rem;
    border-right: 4px solid;
    margin: 1rem 0;
}

.alert-error {
    background: #fef2f2;
    border-right-color: var(--danger);
    color: var(--danger);
}

.alert-success {
    background: #f0fdf4;
    border-right-color: var(--success);
    color: var(--success);
}

/* Icon Styles */
.icon-hospital-modern {
    display: inline-block;
    width: 2.5rem;
    height: 2.5rem;
    background-color: white;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 21V5a2 2 0 00-2-2H7a2 2 0 00-2 2v16m14 0h2m-2 0h-5m-9 0H3m2 0h5M9 7h1m-1 4h1m4-4h1m-1 4h1m-5 10v-5a1 1 0 011-1h2a1 1 0 011 1v5m-4 0h4'%3E%3C/path%3E%3C/svg%3E") no-repeat center;
    mask-size: contain;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 21V5a2 2 0 00-2-2H7a2 2 0 00-2 2v16m14 0h2m-2 0h-5m-9 0H3m2 0h5M9 7h1m-1 4h1m4-4h1m-1 4h1m-5 10v-5a1 1 0 011-1h2a1 1 0 011 1v5m-4 0h4'%3E%3C/path%3E%3C/svg%3E") no-repeat center;
    -webkit-mask-size: contain;
}

.icon-signin-modern {
    display: inline-block;
    width: 1.2rem;
    height: 1.2rem;
    background-color: white;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M11 16l-4-4m0 0l4-4m-4 4h14m-5 4v1a3 3 0 01-3 3H6a3 3 0 01-3-3V7a3 3 0 013-3h7a3 3 0 013 3v1'%3E%3C/path%3E%3C/svg%3E") no-repeat center;
    mask-size: contain;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M11 16l-4-4m0 0l4-4m-4 4h14m-5 4v1a3 3 0 01-3 3H6a3 3 0 01-3-3V7a3 3 0 013-3h7a3 3 0 013 3v1'%3E%3C/path%3E%3C/svg%3E") no-repeat center;
    -webkit-mask-size: contain;
}

/* Typography */
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.font-extrabold { font-weight: 800; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.text-gray-900 { color: #1f2937; }
.text-gray-600 { color: #4b5563; }
.text-gray-700 { color: #374151; }

/* فاصله‌گذاری بین المان‌ها */
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mr-2 { margin-right: 0.5rem; }

/* Responsive */
@media (max-width: 640px) {
    .text-3xl { font-size: 1.5rem; }
    .py-12 { padding-top: 2rem; padding-bottom: 2rem; }
    .px-4 { padding-left: 0.75rem; padding-right: 0.75rem; }
    .modern-logo { width: 60px; height: 60px; }
    .icon-hospital-modern { width: 2rem; height: 2rem; }
    .glass-card {
        padding: 1.5rem;
    }
}

/* استایل چک‌باکس */
input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    accent-color: #6366f1;
}

/* فاصله بین خطاها */
.alert-modern div:not(:last-child) {
    margin-bottom: 0.25rem;
}