/* * assets/css/register.css (Updated for Responsiveness) */

/* 1. متغیرهای ریشه و استایل‌های عمومی */
/* ========================================================================== */
:root {
    --primary-color: #48D1CC;      /* فیروزه‌ای ملایم */
    --primary-hover: #3ac0b9;
    --secondary-color: #007B85;    /* آبی-سبز تیره */
    --info-color: #3498db;
    --success-color: #2ecc71;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --dark-color: #34495e;
    --background-light: #f8f9fa;
    --card-background: #ffffff;
    --border-color: #dee2e6;
    --text-dark: #343a40;
    --text-muted: #6c757d;
    --font-family: 'Vazirmatn', sans-serif;
}

/* [FIX] Universal box-sizing for better layout control */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    margin: 0;
    padding: 0;
    background-color: var(--background-light);
    color: var(--text-dark);
    direction: rtl;
    text-align: right;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden; /* Prevents horizontal scroll */
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('../font/Vazirmatn[wght].woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* 2. چیدمان اصلی و کانتینر فرم */
/* ========================================================================== */
.auth-wrapper {
    width: 100%;
    padding: 20px;
    flex: 1 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-container {
    max-width: 450px;
    width: 100%;
    background-color: var(--card-background);
    /* [TWEAK] Slightly reduced horizontal padding for better adaptability */
    padding: 2.5rem 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 3. هدر فرم */
/* ========================================================================== */
.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.logo-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.auth-header h1 {
    font-size: 1.8rem;
    margin: 0.5rem 0;
    font-weight: 700;
}

.auth-header p {
    color: var(--secondary-color);
    margin: 0;
}

/* 4. استایل فرم‌ها */
/* ========================================================================== */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2);
}

.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    color: var(--secondary-color);
}

.input-with-icon input {
    padding-right: 40px;
}

/* 5. دکمه‌ها و لینک‌ها */
/* ========================================================================== */
.btn-primary-auth {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 8px;
    background-color: var(--primary-color);
    color: var(--text-light);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 1rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-primary-auth:hover {
    background-color: #0069d9;
    transform: translateY(-2px);
}

.auth-links {
    text-align: center;
    margin-top: 2rem;
}

.auth-links p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

.auth-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.auth-links a:hover {
    text-decoration: underline;
}

.back-to-home i {
    margin-left: 5px;
}

/* 6. پیام‌های هشدار */
/* ========================================================================== */
.success-message, .error-message {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    text-align: center;
}

.success-message {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
.error-message p {
    margin: 0.3rem 0;
}

/* 7. استایل‌های واکنش‌گرا */
/* ========================================================================== */
@media (max-width: 480px) {
    .auth-container {
        /* [TWEAK] Optimized padding for small screens */
        padding: 2rem 1.5rem;
    }

    .auth-header h1 {
        font-size: 1.5rem;
    }
}

/* 8. استایل فوتر */
/* ========================================================================== */
footer {
    width: 100%;
    padding: 1.5rem 0;
    text-align: center;
    color: var(--secondary-color);
    font-size: 0.9rem;
    flex-shrink: 0;
}