.auth-container {
    padding: 20px 20px 40px; /* از 110 به 60 کاهش یافت */
}


.title {
    font-size: 22px;
    text-align: center;
    margin-bottom: 20px;
}

.auth-card {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.avatar-section {
    margin-top: 10px;
}

.avatar-section p {
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--text-secondary);
}

.avatar-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.avatar-item {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 2px solid transparent;
    overflow: hidden;
    cursor: pointer;
    transition: 0.2s;
}

.avatar-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-item.selected {
    border-color: var(--primary);
    box-shadow: 0 0 8px rgba(108,71,255,0.6);
}

.auth-link {
    text-align: center;
    display: block;
    margin-top: 8px;
    font-size: 14px;
    color: var(--primary-light);
    text-decoration: none;
}


.input-wrapper {
    position: relative; /* برای اینکه پیام خطا راحت‌تر زیرش قرار بگیره */
    margin-bottom: 16px; /* فاصله بین هر جفت input و پیام خطای زیرش */
}

/* پیام خطا */
.input-error-msg {
    color: #ff5c5c;
    font-size: 12px;
    margin-top: 4px;
    font-weight: 500;
    font-family: 'IRANSansX', sans-serif !important;
    display: block; /* برای اینکه زیر input بیاد */
    width: 100%; /* عرض کامل */
}

/* ممکن است لازم باشد استایل input را کمی تنظیم کنیم */
.auth-card .input {
    width: 100%; /* اطمینان از اینکه input عرض کامل را بگیرد */
    box-sizing: border-box; /* برای اینکه padding و border در عرض محاسبه شوند */
}
