@font-face {
    font-family: 'VazirmatnRD';
    src: url('../fonts/Vazirmatn-RD-FD-Regular.woff2') format('woff2'),
         url('../fonts/Vazirmatn-RD-FD-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'VazirmatnRD';
    src: url('../fonts/Vazirmatn-RD-FD-Bold.woff2') format('woff2'),
         url('../fonts/Vazirmatn-RD-FD-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'VazirmatnRD';
    src: url('../fonts/Vazirmatn-RD-FD-Light.woff2') format('woff2'),
         url('../fonts/Vazirmatn-RD-FD-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'VazirmatnRD';
    src: url('../fonts/Vazirmatn-RD-FD-Medium.woff2') format('woff2'),
         url('../fonts/Vazirmatn-RD-FD-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

body {
    direction: rtl;
    text-align: right;
    font-family: 'VazirmatnRD', sans-serif;
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    transition: background 0.5s ease-in-out;
}

.form-container {
    max-width: 400px;
    padding: 30px;
    background: #ffffffee;
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    animation: slideIn 0.7s ease forwards;
    opacity: 0;
}

@keyframes slideIn {
    from { transform: translateY(40px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

#error-message {
    display: none;
    color: #e74c3c;
    font-weight: bold;
    margin-bottom: 15px;
    text-align: center;
}

label {
    font-weight: bold;
}

input.form-control {
    border-radius: 12px !important;
    transition: all 0.2s;
    background-color: #f0f0f0;
}

input.form-control:focus {
    border-color: #2575fc;
    background-color: #fff;
    box-shadow: 0 0 0 0.2rem rgba(37, 117, 252, 0.25);
}

button {
    border-radius: 12px !important;
    transition: background 0.3s ease, transform 0.2s ease;
}

button:hover {
    background: #1a5fd0 !important;
    transform: translateY(-2px);
}

#captcha-image {
    border-radius: 10px;
    border: 1px solid #ccc;
    height: 60px;
}

.btn-block {
    width: 100%;
}

/* دارک مود */
@media (prefers-color-scheme: dark) {
    body {
        background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    }

    .form-container {
        background: #2d2d2dcc;
        color: #f0f0f0;
    }

    input.form-control {
        background-color: #444;
        color: white;
        border-color: #555;
    }

    input.form-control:focus {
        background-color: #333;
        color: white;
        border-color: #888;
    }

    #captcha-image {
        border-color: #555;
    }

    button {
        background: #3498db;
        color: white;
    }

    button:hover {
        background: #2980b9 !important;
    }

    label {
        color: #ddd;
    }
}
