/* ===============================
   فونت فارسی Vazirmatn
   =============================== */
@import url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/Vazirmatn-font-face.css');

* {
    font-family: 'Vazirmatn', sans-serif;
    direction: rtl;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #f9fafb;
    color: #1f2937;
    line-height: 1.7;
}

/* ===============================
   کانتینر
   =============================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ===============================
   هدر
   =============================== */
header {
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    border-bottom: 1px solid #e5e7eb;
    padding: 1rem 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-title {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    width: 48px;
    height: 48px;
}

.header-buttons a {
    margin-left: 1rem;
    text-decoration: none;
}

/* ===============================
   دکمه‌ها
   =============================== */
.btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    border: none;
}

.btn-primary {
    background-color: #2563eb;
    color: white;
}
.btn-primary:hover {
    background-color: #1d4ed8;
}

.btn-secondary {
    background-color: #e5e7eb;
    color: #374151;
}
.btn-secondary:hover {
    background-color: #d1d5db;
}

/* ===============================
   Hero Section
   =============================== */
.hero {
    background: linear-gradient(to left, #2563eb, #1e40af);
    color: white;
    text-align: center;
    padding: 5rem 1rem;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

/* ===============================
   Features
   =============================== */
.features {
    padding: 4rem 1rem;
    background: #fff;
}

.features h3 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
}

.feature-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.card {
    background: white;
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    padding: 2rem;
    width: 300px;
    text-align: center;
}

.card .icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* ===============================
   How It Works
   =============================== */
.how-it-works {
    padding: 4rem 1rem;
    background: #f3f4f6;
}

.how-it-works h3 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
}

.steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.step {
    background: white;
    padding: 1.5rem;
    border-radius: 1rem;
    width: 220px;
    text-align: center;
    border: 1px solid #e5e7eb;
}

.step .circle {
    background: #2563eb;
    color: white;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem auto;
    border-radius: 50%;
    font-weight: bold;
    font-size: 1.25rem;
}

/* ===============================
   CTA
   =============================== */
.cta {
    background: #2563eb;
    color: white;
    text-align: center;
    padding: 5rem 1rem;
}

.cta h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

/* ===============================
   Footer
   =============================== */
footer {
    background: #1f2937;
    color: white;
    text-align: center;
    padding: 2rem 1rem;
}

footer p {
    margin: 0.5rem 0;
    font-size: 0.875rem;
}

/*loginpage */
.login-container {
    width: 100%;
    max-width: 420px;
    padding: 20px;
}

.login-card {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    overflow: hidden;
}

.login-header {
    background: linear-gradient(to left, #2563eb, #1e40af);
    color: white;
    text-align: center;
    padding: 25px 15px;
}

.login-header h1 {
    font-size: 22px;
    margin: 10px 0 5px;
}

.login-header p {
    font-size: 14px;
    opacity: 0.8;
}

.login-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 10px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon {
    width: 40px;
    height: 40px;
    color: #2563eb;
}

.login-body {
    padding: 25px;
}

label {
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-weight: 600;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 15px;
    transition: 0.2s;
}

input:focus {
    border-color: #2563eb;
    outline: none;
    box-shadow: 0 0 4px rgba(37, 99, 235, 0.4);
}

.remember-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 14px;
}

.remember-box a {
    color: #2563eb;
    text-decoration: none;
}

.remember-box a:hover {
    text-decoration: underline;
}

button {
    width: 100%;
    background-color: #2563eb;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-size: 16px;
    cursor: pointer;
    transition: 0.2s;
}

button:hover {
    background-color: #1e40af;
}

.login-footer {
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    text-align: center;
    padding: 12px;
}

.login-footer a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

.login-footer a:hover {
    text-decoration: underline;
}

.info-box {
    text-align: center;
    font-size: 13px;
    margin-top: 10px;
    color: #555;
    background: white;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.alert {
    padding: 10px 12px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 14px;
}

.alert-error {
    background-color: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.alert-success {
    background-color: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

