/* ظرف کلی برای وسط‌چین کردن و پس‌زمینه اصلی */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at top right, #1a1f2b, #0f1218);
    padding: 20px;
    font-family: 'Tahoma', sans-serif; /* یا هر فونت فارسی که استفاده می‌کنید */
}

/* کادر اصلی - افکت شیشه‌ای و محدود شده در دسکتاپ */
.auth-card-glass {
    width: 100%;
    max-width: 420px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 28px;
    padding: 40px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    position: relative;
}

/* ردیف هدر: قرارگیری عنوان و دکمه بازگشت روبروی هم */
.auth-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.auth-header-row h2 {
    font-size: 22px;
    color: #ffffff;
    font-weight: 700;
    margin: 0;
}

/* استایل دکمه بازگشت مدرن */
.back-link {
    color: #a0a0a0;
    text-decoration: none;
    font-size: 13px;
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 12px;
    border-radius: 10px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.back-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    transform: translateX(-3px);
}

/* متن راهنما */
.auth-body p {
    font-size: 13px;
    color: #888888;
    margin-bottom: 35px;
    text-align: right;
}

/* گروه اینپوت */
.input-group-custom {
    margin-bottom: 25px;
    text-align: right;
}

.input-group-custom label {
    display: block;
    color: #c9a76d; /* طلایی */
    font-size: 13px;
    margin-bottom: 10px;
    padding-right: 5px;
}

.input-wrapper {
    position: relative;
}

.input-group-custom input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 16px 45px 16px 15px;
    color: white;
    font-size: 18px;
    letter-spacing: 2px;
    direction: ltr;
    transition: all 0.3s ease;
}

.input-group-custom input:focus {
    outline: none;
    border-color: #007bff;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 20px rgba(0, 123, 255, 0.2);
}

/* آیکون داخل اینپوت */
.input-icon {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #565e70;
    font-size: 18px;
    transition: 0.3s;
}

.input-group-custom input:focus + .input-icon {
    color: #007bff;
}

/* دکمه ارسال اصلی */
.btn-submit-modern {
    width: 100%;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-submit-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 123, 255, 0.3);
    filter: brightness(1.1);
}

/* استایل پیام‌های خطا (Django Messages) */
.glass-alert {
    background: rgba(255, 82, 82, 0.1);
    border-right: 4px solid #ff5252;
    color: #ff8a8a;
    padding: 14px;
    border-radius: 12px;
    font-size: 13px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* فوتر (قوانین) */
.auth-footer {
    margin-top: 35px;
    font-size: 11px;
    color: #666666;
    text-align: center;
    line-height: 1.8;
}

.auth-footer a {
    color: #007bff;
    text-decoration: none;
    transition: 0.3s;
}

.auth-footer a:hover {
    color: #c9a76d;
}

/* بهینه‌سازی برای موبایل */
@media (max-width: 480px) {
    .auth-wrapper {
        padding: 0;
        background: #0f1218; /* در موبایل پس‌زمینه ساده‌تر برای تمرکز بیشتر */
    }

    .auth-card-glass {
        height: 100vh;
        max-width: 100%;
        border-radius: 0;
        border: none;
        background: transparent;
        box-shadow: none;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 30px;
    }

    .auth-header-row h2 {
        font-size: 24px;
    }
}
