﻿/* wwwroot/css/preregister.css */

@font-face {
    font-family: 'yekan';
    src: url('../fonts/YekanBakhFaNum-Regular.woff') format('woff');
    font-weight: normal;
    font-display: swap;
}

@font-face {
    font-family: 'yekan';
    src: url('../fonts/YekanBakhFaNum-Bold.woff') format('woff');
    font-weight: bold;
    font-display: swap;
}

@font-face {
    font-family: 'yekan';
    src: url('../fonts/YekanBakhFaNum-Heavy.woff') format('woff');
    font-weight: 900;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    font-family: 'yekan', Tahoma, sans-serif;
    background: linear-gradient(135deg, #4690FB 0%, #1e66f5 100%);
    min-height: 100vh;
    direction: rtl;
    padding: 20px;
}

.form-container {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 28px;
    padding: 50px 40px;
    max-width: 480px;
    width: 100%;
    margin: 20px auto;
    box-shadow: 0 30px 80px rgba(70, 144, 251, 0.35);
    transition: transform 0.4s ease;
    transform: perspective(1200px) rotateX(0deg) rotateY(0deg);
}

h1 {
    text-align: center;
    font-size: 28px;
    font-weight: 900;
    background: linear-gradient(135deg, #15B2D1, #1579b1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
}

.subtitle {
    text-align: center;
    color: #555;
    font-size: 15px;
    margin-bottom: 35px;
    font-weight: 500;
}

.form-group {
    margin-bottom: 28px;
}

label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    color: #222;
    font-size: 15px;
}

.form-control {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e0e8ff;
    border-radius: 16px;
    font-size: 16px;
    background: #fafbff;
    transition: all 0.3s ease;
    font-family: inherit;
}

    .form-control:focus {
        outline: none;
        border-color: #4690FB;
        background: white;
        box-shadow: 0 0 0 6px rgba(70, 144, 251, 0.2);
        transform: translateY(-3px);
    }

.persian-datepicker-wrapper {
    position: relative;
}

.submit-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #4690FB, #1e66f5);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 18px;
    font-weight: 900;
    cursor: pointer;
    transition: all 0.4s ease;
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

    .submit-btn:hover:not(:disabled) {
        transform: translateY(-5px);
        box-shadow: 0 20px 40px rgba(70,144,251,0.4);
    }

.spinner {
    display: none;
    width: 22px;
    height: 22px;
    border: 3px solid transparent;
    border-top: 3px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.submit-btn:disabled .spinner {
    display: block;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.status-message { /* همون قبلی */
}

    .status-message.show {
        opacity: 1;
        transform: translateY(0);
    }

    .status-message.success {
        background: linear-gradient(135deg, #51cf66, #40c057);
    }

    .status-message.error {
        background: linear-gradient(135deg, #ff6b6b, #fa5252);
    }

    .status-message.optimistic {
        background: linear-gradient(135deg, #74c0fc, #4690FB);
    }

.typing-indicator {
    font-size: 12px;
    color: #4690FB;
    margin-right: 10px;
    opacity: 0;
    transition: opacity 0.3s;
    font-weight: 500;
}

    .typing-indicator.show {
        opacity: 1;
    }

/* ریسپانسیو */
@media (max-width: 480px) {
    .form-container {
        padding: 40px 25px;
        border-radius: 24px;
    }

    h1 {
        font-size: 24px;
    }

    .subtitle {
        font-size: 14px;
    }
}
/* استایل تقویم برای RTL و موبایل */
.persian-datepicker {
    direction: rtl !important;
    font-family: 'yekan', Tahoma, sans-serif !important;
}

    .persian-datepicker td {
        font-family: 'yekan' !important;
    }

@media (max-width: 480px) {
    .persian-datepicker {
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
    }
}

.birthdate-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

    .birthdate-group select {
        flex: 1;
        min-width: 100px;
    }

@media (max-width: 480px) {
    .birthdate-group {
        flex-direction: column;
    }

        .birthdate-group select {
            width: 100%;
        }
}

.form-container {
    max-width: 480px;
    margin: 40px auto;
    padding: 30px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(70,144,251,0.15);
    font-family: yekan, 'Segoe UI', sans-serif;
}

h1 {
    color: #15B2D1;
    text-align: center;
    margin-bottom: 8px;
}

.subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e8ff;
    border-radius: 12px;
    font-size: 16px;
    transition: border 0.3s;
}

    .form-control:focus {
        border-color: #4690FB;
        outline: none;
    }

.birthdate-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

    .birthdate-group select {
        flex: 1;
        min-width: 120px;
    }

.submit-btn {
    width: 100%;
    padding: 16px;
    background: #4690FB;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 20px;
}

    .submit-btn:disabled {
        background: #a0c4ff;
        cursor: not-allowed;
    }

.status-message {
    margin-top: 20px;
    padding: 14px;
    border-radius: 10px;
    text-align: center;
    font-weight: bold;
}

    .status-message.success {
        background: #d4edda;
        color: #155724;
    }

    .status-message.error {
        background: #f8d7da;
        color: #721c24;
    }

    .status-message.info {
        background: #d1ecf1;
        color: #0c5460;
    }

.logo-top {
    max-width: 65px;
    max-height: 65px;
    margin-left: auto;
    margin-right: auto;
}
.logo-con {
    display: flex;
    justify-content: center; /* وسط کردن افقی */
    align-items: center; /* اگر بخوای عمودی هم وسط بشه */
    margin-bottom:15px;
}
.subtitlebold {
    text-align: center;
    color: #555;
    font-size: 15px;
    margin-bottom: 35px;
    font-weight:bold;
}