/* ============================================
   AUTH STYLES - Novix Website
   ورود و ثبت‌نام
   ربات‌ساز نوویکس | Novix
   ============================================ */

.auth-page {
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding: 2rem 0;
}

.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    width: 100%;
    position: relative;
    overflow: hidden;
    transition: all var(--transition);
}

.auth-card:hover {
    border-color: var(--border-light);
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-light), var(--info));
    opacity: 0.6;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header .auth-icon {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    display: block;
    color: var(--accent-light);
}

.auth-header h2 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 0.2rem;
    color: var(--text-primary);
}

.auth-header p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

.auth-header p strong {
    color: var(--accent-light);
    font-weight: 700;
}

.auth-form .form-group {
    margin-bottom: 1.2rem;
}

.auth-form .form-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.auth-form .form-label i {
    color: var(--accent-light);
    font-size: 0.8rem;
}

.auth-form .input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-form .input-wrapper .form-control {
    width: 100%;
    padding: 0.7rem 1rem;
    padding-left: 2.8rem;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all var(--transition);
    font-family: 'Vazirmatn', sans-serif;
}

.auth-form .input-wrapper .form-control:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.auth-form .input-wrapper .form-control::placeholder {
    color: var(--text-muted);
}

.auth-form .input-wrapper .form-control:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px var(--bg-input) inset !important;
    -webkit-text-fill-color: var(--text-primary) !important;
}

.auth-form .input-wrapper .toggle-password {
    position: absolute;
    left: 0.8rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.3rem;
    border-radius: 50%;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
}

.auth-form .input-wrapper .toggle-password:hover {
    color: var(--text-primary);
}

.auth-form .input-wrapper .toggle-password:active {
    transform: scale(0.9);
}

.auth-form .form-hint {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 0.3rem;
}

.auth-form .form-hint i {
    font-size: 0.6rem;
    color: var(--info);
}

.auth-form .btn-submit {
    width: 100%;
    padding: 0.8rem;
    font-size: 1rem;
    font-weight: 700;
    margin-top: 0.5rem;
    position: relative;
    border-radius: var(--radius);
    transition: all var(--transition);
}

.auth-form .btn-submit:hover {
    transform: translateY(-2px);
}

.auth-form .btn-submit:active {
    transform: scale(0.97);
}

.auth-form .btn-submit .btn-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    font-size: 1.2rem;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.auth-footer p {
    margin: 0;
}

.auth-footer a {
    color: var(--accent-light);
    font-weight: 600;
    text-decoration: none;
    transition: color var(--transition);
}

.auth-footer a:hover {
    color: var(--text-primary);
}

.auth-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.auth-features .feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    padding: 0.5rem;
    background: var(--bg-secondary);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    transition: all var(--transition);
}

.auth-features .feature-item:hover {
    border-color: var(--border-light);
    background: var(--bg-card-hover);
    transform: translateY(-2px);
}

.auth-features .feature-item i {
    font-size: 1.2rem;
    color: var(--accent-light);
}

.auth-features .feature-item span {
    font-size: 0.6rem;
    color: var(--text-secondary);
    text-align: center;
    font-weight: 500;
    line-height: 1.3;
}

/* ============================================
   RESPONSIVE - AUTH
   ============================================ */

@media (max-width: 360px) {
    .auth-page { min-height: 70vh; padding: 1rem 0; }
    .auth-card { padding: 1.5rem; border-radius: var(--radius); }
    .auth-header .auth-icon { font-size: 2.5rem; }
    .auth-header h2 { font-size: 1.4rem; }
    .auth-header p { font-size: 0.8rem; }
    .auth-form .input-wrapper .form-control { padding: 0.6rem 0.8rem; padding-left: 2.5rem; font-size: 0.85rem; }
    .auth-form .btn-submit { padding: 0.6rem; font-size: 0.9rem; }
    .auth-features { grid-template-columns: repeat(3, 1fr); gap: 0.3rem; }
    .auth-features .feature-item { padding: 0.3rem; }
    .auth-features .feature-item i { font-size: 1rem; }
    .auth-features .feature-item span { font-size: 0.5rem; }
    .auth-footer { font-size: 0.8rem; }
}

@media (min-width: 361px) and (max-width: 480px) {
    .auth-page { min-height: 75vh; padding: 1.5rem 0; }
    .auth-card { padding: 1.8rem; }
    .auth-header h2 { font-size: 1.6rem; }
    .auth-features { grid-template-columns: repeat(3, 1fr); gap: 0.4rem; }
    .auth-features .feature-item { padding: 0.4rem; }
}

@media (min-width: 481px) and (max-width: 768px) {
    .auth-page { min-height: 75vh; padding: 2rem 0; }
    .auth-card { padding: 2rem; }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .auth-card { padding: 2.5rem; }
}

@media (min-width: 1025px) {
    .auth-page { min-height: 85vh; padding: 3rem 0; }
    .auth-card { padding: 3rem; }
}

@media (max-width: 768px) {
    .auth-card { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
    .auth-card::before { height: 2px; }
    .auth-features .feature-item { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
    .auth-features .feature-item:hover { transform: translateY(-1px); }
}

[data-theme="light"] .auth-card {
    background: rgba(255, 255, 255, 0.95);
    border-color: var(--border-color);
}

[data-theme="light"] .auth-card:hover {
    border-color: var(--border-light);
}

[data-theme="light"] .auth-form .input-wrapper .form-control {
    background: var(--bg-input);
    color: var(--text-primary);
}

[data-theme="light"] .auth-form .input-wrapper .form-control:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px var(--bg-input) inset !important;
    -webkit-text-fill-color: var(--text-primary) !important;
}

[data-theme="light"] .auth-features .feature-item {
    background: var(--bg-secondary);
}

[data-theme="light"] .auth-features .feature-item:hover {
    background: var(--bg-card-hover);
}

.auth-form .input-wrapper .form-control.error {
    border-color: var(--danger);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.auth-form .input-wrapper .form-control.error:focus {
    border-color: var(--danger);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.auth-form .error-message {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    color: var(--danger);
    margin-top: 0.3rem;
}

.auth-form .error-message i {
    font-size: 0.7rem;
}

.auth-form .input-wrapper .form-control.success {
    border-color: var(--success);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.auth-form .input-wrapper .form-control.success:focus {
    border-color: var(--success);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

@keyframes authFadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.auth-card {
    animation: authFadeIn 0.5s ease forwards;
}

@keyframes authPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.auth-header .auth-icon {
    animation: authPulse 3s ease-in-out infinite;
}