@font-face {
    font-family: IranSans;
    src: url(../font/IRANSans.ttf);
}
:root {
    --primary: #4361ee;
    --primary-light: #eef2ff;
    --primary-dark: #3a56d4;
    --secondary: #06d6a0;
    --accent: #ff6b6b;
    --warning: #ffd166;
    --info: #4cc9f0;
    --dark: #2d3748;
    --dark-light: #4a5568;
    --light: #f8fafc;
    --gray: #e2e8f0;
    --gray-light: #f1f5f9;
    --border: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: all 0.3s ease;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: IranSans;
    resize: none;
}
body {
    background: var(--gray-light);
    color: var(--dark);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
body.loading {
    overflow: hidden;
}
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--light);
    opacity: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
    z-index: 999999;
}
#loader.hidden {
    opacity: 0;
    visibility: hidden;
}
.spinner {
    width: 42px;
    height: 42px;
    border: 4px solid transparent;
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
.container {
    display: flex;
    width: 100%;
    max-width: 1200px;
    min-height: 700px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transform: scale(.85);
    border: 1px solid var(--gray);
}
.welcome-section {
    flex: 1;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.welcome-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.05);
    animation: float 20s infinite linear;
}
@keyframes float {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(-100px, -100px) rotate(360deg); }
}
.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    position: relative;
}
.logo-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}
.logo-text h1 {
    font-size: 1.5rem;
}
.welcome-content h2 {
    font-size: 2.2rem;
    line-height: 1.5;
}
.welcome-content p {
    opacity: 0.9;
    margin-bottom: 2rem;
    line-height: 1.6;
}
.features {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
}
.feature {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.feature-text p{
    margin: 0;
}
.feature-icon {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}
.auth-section {
    flex: 1;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--light);
}
.auth-container {
    max-width: 420px;
    width: 100%;
    margin: 0 auto;
}
.auth-tabs {
    display: flex;
    background: var(--gray-light);
    border-radius: var(--radius);
    padding: 0.25rem;
    margin-bottom: 2rem;
}
.auth-tab {
    flex: 1;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    font-weight: 500;
    color: var(--dark-light);
}
.auth-tab.active {
    background: white;
    color: var(--primary);
    box-shadow: var(--shadow);
}
.auth-form {
    display: none;
    animation: fadeIn 0.3s ease;
}
.auth-form.active {
    display: block;
}
.form-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--dark);
}
.form-subtitle {
    color: var(--dark-light);
    margin-bottom: 1.8rem;
    font-size: 0.95rem;
}
.form-group {
    margin-bottom: 1.2rem;
}
.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark);
    font-size: 0.9rem;
}
.form-control {
    width: 100%;
    padding: 0.9rem;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.95rem;
    transition: var(--transition);
    background: white;
}
.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}
.password-input {
    position: relative;
}
.toggle-password {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--dark-light);
    cursor: pointer;
    padding: 0.5rem;
}
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.forgot-password {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.9rem 2rem;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
}
.btn-primary {
    background: var(--primary);
    color: white;
}
.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}
.btn-google {
    background: white;
    color: var(--dark);
    border: 2px solid var(--border);
    margin-top: 1rem;
}
.divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    color: var(--dark-light);
}
.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}
.divider span {
    padding: 0 1rem;
    font-size: 0.85rem;
}
.form-footer {
    text-align: center;
    margin-top: 1.8rem;
    color: var(--dark-light);
    font-size: 0.9rem;
}
.form-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}
.registration-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    position: relative;
}
.registration-steps::before {
    content: '';
    position: absolute;
    top: 15px;
    right: 0;
    left: 0;
    height: 2px;
    background: var(--border);
    z-index: 1;
}
.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}
.step-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--gray-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    transition: var(--transition);
}
.step.active .step-number {
    background: var(--primary);
    color: white;
}
.step.completed .step-number {
    background: var(--secondary);
    color: white;
}
.step-label {
    font-size: 0.85rem;
    color: var(--dark-light);
    text-align: center;
}
.step.active .step-label {
    color: var(--primary);
    font-weight: 500;
}
.file-upload {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}
.file-upload:hover {
    border-color: var(--primary);
}
.file-upload i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}
.file-upload input {
    display: none;
}
.avatar-preview {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
    display: none;
}
.form-navigation {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}
.form-navigation .btn {
    flex: 1;
}
.btn-outline {
    background: var(--light);
    color: var(--primary);
    border: 2px solid var(--primary);
}
.error-message {
    color: var(--accent);
    font-size: 0.8rem;
    margin-top: 0.25rem;
    display: none;
}
.error-message.show {
    display: block;
}
@media (max-width: 768px) {
    .container {
        min-height: auto;
        max-width: 70vw;
    }
    .welcome-section {
        padding: 2rem;
        display: none;
    }
    
    .auth-section {
        padding: 2rem;
    }
}
@media (max-width: 425px) {
    .container {
        min-height: auto;
        min-width: 110vw;
        max-width: 120vw;
        transform: scale(.8);
    }
    .file-upload{
        transform-origin: right;
        transform: scale(.9);
        width: 111.1%;
        margin: 0;
    }
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
body.dark-mode {
    --light: #0f172a;
    --dark: #f8fafc;
    --dark-light: #cbd5e1;
    --gray-light: #1e293b;
    --border: #334155;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
    background-color: var(--light);
}
body.dark-mode .card,
body.dark-mode .form-control{
    background: var(--gray-light) !important;
    color: #f8fafc;
    border-color: #334155;
}
body.dark-mode .card-title,
body.dark-mode .chat-input {
    color: #f8fafc;
}