/* ============================================
   VolDep - Giriş & Kayıt Sayfaları Stilleri
   ============================================ */

/* ---------- Auth Sayfa Yapısı ---------- */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #312e81 100%);
    position: relative;
    overflow: hidden;
}

/* Arka plan dekorasyonu */
.auth-page::before,
.auth-page::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.3;
}

.auth-page::before {
    width: 500px;
    height: 500px;
    background: #4f46e5;
    top: -150px;
    right: -100px;
}

.auth-page::after {
    width: 400px;
    height: 400px;
    background: #06b6d4;
    bottom: -120px;
    left: -100px;
}

.auth-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 460px;
}

/* ---------- Auth Kartı ---------- */
.auth-card {
    background: var(--white);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
    animation: authFadeIn 0.5s ease;
}

@keyframes authFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- Logo ---------- */
.auth-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.auth-logo .logo {
    font-size: 1.5rem;
}

/* ---------- Başlıklar ---------- */
.auth-title {
    text-align: center;
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--dark);
}

.auth-subtitle {
    text-align: center;
    color: var(--gray);
    font-size: 0.95rem;
    margin-bottom: 28px;
}

/* ---------- Uyarı Kutusu ---------- */
.auth-alert {
    display: none;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 20px;
    animation: alertShake 0.4s ease;
}

.auth-alert.show {
    display: block;
}

.auth-alert.error {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.auth-alert.success {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.25);
}

@keyframes alertShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-6px); }
    75% { transform: translateX(6px); }
}

/* ---------- Form ---------- */
.auth-form .form-group {
    margin-bottom: 18px;
}

.auth-form label {
    display: block;
    font-weight: 600;
    font-size: 0.88rem;
    margin-bottom: 8px;
    color: var(--dark);
}

.input-wrapper {
    position: relative;
}

.input-wrapper input {
    width: 100%;
    padding: 13px 16px;
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
    background: #f8fafc;
}

.input-wrapper input:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

.input-wrapper input::placeholder {
    color: #94a3b8;
}

/* Şifre göster/gizle düğmesi */
.toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 4px;
    line-height: 1;
    opacity: 0.7;
    transition: var(--transition);
}

.toggle-password:hover {
    opacity: 1;
}

/* ---------- Şifre Gücü Göstergesi ---------- */
.strength-meter {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
}

.strength-bars {
    display: flex;
    gap: 6px;
    flex: 1;
}

.strength-bar {
    height: 5px;
    flex: 1;
    background: #e2e8f0;
    border-radius: 3px;
    transition: var(--transition);
}

.strength-bar.weak {
    background: var(--danger);
}

.strength-bar.medium {
    background: var(--warning);
}

.strength-bar.strong {
    background: var(--success);
}

#strengthText {
    font-size: 0.78rem;
    color: var(--gray);
    white-space: nowrap;
}

/* ---------- Seçenekler Satırı ---------- */
.auth-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 4px 0 24px;
    font-size: 0.88rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gray);
    cursor: pointer;
}

.remember-me input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
    cursor: pointer;
}

.forgot-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.forgot-link:hover {
    text-decoration: underline;
}

/* ---------- Checkbox Satırı (şartlar) ---------- */
.terms-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 4px 0 24px;
    font-size: 0.88rem;
    color: var(--gray);
    cursor: pointer;
}

.terms-row input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-top: 3px;
    accent-color: var(--primary);
    cursor: pointer;
    flex-shrink: 0;
}

.terms-row a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.terms-row a:hover {
    text-decoration: underline;
}

/* ---------- Gönderim Butonu ---------- */
.auth-btn {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
    border: none;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 16px rgba(79, 70, 229, 0.3);
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(79, 70, 229, 0.4);
}

.auth-btn:active {
    transform: translateY(0);
}

/* ---------- Alt Bilgi Linkleri ---------- */
.auth-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
    font-size: 0.92rem;
    color: var(--gray);
}

.auth-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* ---------- Geri Dönüş Linki ---------- */
.auth-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 20px;
    transition: var(--transition);
}

.auth-back:hover {
    color: var(--white);
    gap: 12px;
}

/* ---------- Toast Bildirimi ---------- */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 16px 22px;
    background: var(--dark);
    color: var(--white);
    border-radius: 14px;
    box-shadow: var(--shadow-lg);
    font-size: 0.95rem;
    z-index: 2000;
    animation: toastIn 0.4s ease, toastOut 0.4s ease 4s forwards;
    max-width: 360px;
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateX(60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes toastOut {
    to {
        opacity: 0;
        transform: translateX(60px);
    }
}

/* ---------- Kullanıcı Rozeti (navbar) ---------- */
.user-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px 6px 6px;
    background: var(--gray-light);
    border-radius: 100px;
    border: 1px solid #e2e8f0;
}

.user-avatar {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--white);
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.85rem;
}

.user-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--dark);
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ---------- Responsive ---------- */
@media (max-width: 480px) {
    .auth-card {
        padding: 28px 20px;
    }

    .auth-options {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .user-name {
        display: none;
    }
}