/* ============================================================
   استایل صفحات احراز هویت
   ============================================================ */

.auth-body {
    background: linear-gradient(135deg, #1e4d1e 0%, #2d6a2d 40%, #4a9e4a 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.auth-wrapper {
    width: 100%;
    max-width: 440px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

.auth-card {
    width: 100%;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
    overflow: hidden;
}

.auth-logo {
    background: linear-gradient(135deg, #1e4d1e, #4a9e4a);
    padding: 2.5rem 2rem 2rem;
    text-align: center;
}

.auth-logo-icon {
    width: 80px; height: 80px;
    background: rgba(255,255,255,.15);
    border: 2px solid rgba(255,255,255,.3);
    border-radius: 20px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1rem;
    backdrop-filter: blur(10px);
    overflow: hidden;
    padding: 8px;
}

.auth-logo-title {
    color: white;
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: .35rem;
}

.auth-logo-sub {
    color: rgba(255,255,255,.7);
    font-size: .85rem;
}

.auth-form-wrap { padding: 2rem; }

.auth-form-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 1.75rem;
    text-align: center;
}

/* input با آیکون */
.input-icon-wrap {
    position: relative;
}

.input-icon-wrap .input-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    font-size: .95rem;
    pointer-events: none;
}

.input-icon-wrap .form-control {
    padding-right: 2.75rem;
}

/* دکمه نمایش رمز */
.toggle-password {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none; border: none;
    color: var(--gray-400);
    cursor: pointer;
    font-size: .9rem;
    padding: .2rem;
}

.toggle-password:hover { color: var(--primary); }

/* دکمه ورود */
.auth-submit {
    width: 100%;
    padding: .85rem;
    font-size: 1rem;
    margin-top: .5rem;
    border-radius: 12px;
    background: linear-gradient(135deg, #1e4d1e, #4a9e4a);
    border: none;
    color: white;
    font-weight: 700;
    cursor: pointer;
    transition: all .2s ease;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
}

.auth-submit:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(30,64,175,.35);
}

.auth-submit:disabled {
    opacity: .7;
    cursor: not-allowed;
}

/* پیام خطا/موفقیت */
.auth-alert {
    padding: .9rem 1.1rem;
    border-radius: 10px;
    font-size: .875rem;
    display: flex;
    align-items: center;
    gap: .65rem;
    margin-bottom: 1.25rem;
    border: 1px solid transparent;
}

.auth-alert.error {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #991b1b;
}

.auth-alert.success {
    background: #dcfce7;
    border-color: #86efac;
    color: #166534;
}

.auth-alert.warning {
    background: #fef3c7;
    border-color: #fcd34d;
    color: #92400e;
}

/* footer */
.auth-footer {
    color: rgba(255,255,255,.5);
    font-size: .8rem;
    text-align: center;
}

/* ============================================================
   Responsive — Auth
   ============================================================ */
@media (max-width: 640px) {
    .auth-body { padding: .75rem; align-items: flex-start; padding-top: 2rem; }
    .auth-logo { padding: 1.75rem 1.25rem 1.5rem; }
    .auth-form-wrap { padding: 1.5rem 1.25rem; }
    .auth-submit { min-height: 48px; font-size: .95rem; }
    .auth-logo-icon { width: 64px; height: 64px; }
}
