﻿
/* استایل‌های حرفه‌ای و استاندارد */
.form-container {
    width: 100%;
    max-width: 480px;
    margin: 2rem auto;
}

.form-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 2.5rem;
    margin: 1rem 0;
    position: relative;
    border: 1px solid #f0f0f0;
}

.dark .form-card {
    background: #1f2937;
    border-color: #374151;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.form-field {
    margin-bottom: 1.25rem;
}

    .form-field.full-width {
        grid-column: 1 / -1;
    }

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #374151;
    font-size: 0.875rem;
}

.dark .form-label {
    color: #d1d5db;
}

.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    background: white;
    box-sizing: border-box;
    font-family: inherit;
}

.dark .form-input {
    background: #374151;
    border-color: #4b5563;
    color: white;
}

.form-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.dark .form-input:focus {
    border-color: #3b82f6;
}

.form-title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 2rem;
    line-height: 1.4;
}

.dark .form-title {
    color: #f9fafb;
}

.submit-btn {
    width: 100%;
    padding: 0.875rem;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
}

    .submit-btn:hover:not(:disabled) {
        background: #2563eb;
    }

    .submit-btn:disabled {
        opacity: 0.6;
        cursor: not-allowed;
        background: #9ca3af;
    }

.back-btn {
    width: 100%;
    padding: 0.875rem;
    background: #f9fafb;
    color: #374151;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
}

    .back-btn:hover {
        background: #f3f4f6;
        border-color: #9ca3af;
    }

.dark .back-btn {
    background: #374151;
    border-color: #4b5563;
    color: #d1d5db;
}

    .dark .back-btn:hover {
        background: #4b5563;
    }

.button-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.theme-toggle-btn {
    position: absolute;
    left: 1.25rem;
    top: 1.25rem;
    padding: 0.5rem;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .theme-toggle-btn:hover {
        background: #f1f5f9;
        color: #475569;
    }

.dark .theme-toggle-btn {
    background: #374151;
    border-color: #4b5563;
    color: #9ca3af;
}

    .dark .theme-toggle-btn:hover {
        background: #4b5563;
        color: #d1d5db;
    }

/* پس‌زمینه اصلی مانند کد اولیه */
body {
    background-color: #f8fafc;
}

.dark body {
    background-color: #0f172a;
}

/* background مانند کد اصلی */
.pointer-events-none {
    pointer-events: none;
}

.absolute {
    position: absolute;
}

.inset-0 {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.flex {
    display: flex;
}

.w-screen {
    width: 100vw;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.overflow-hidden {
    overflow: hidden;
}

.form-container {
    margin: 1rem auto;
    padding: 0 1rem;
}

.form-card {
    padding: 2rem 1.5rem;
}

.form-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.button-group {
    grid-template-columns: 1fr;
    gap: 0.5rem;
}

.form-title {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.theme-toggle-btn {
    left: 1rem;
    top: 1rem;
    padding: 0.4rem;
}


.text-error {
    color: #dc2626;
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

.dark .text-error {
    color: #f87171;
}

