/* =====================================================
   Develi Bıçak Dünyası - Giriş & Kayıt Sayfaları Stili
   assets/css/auth.css
   ===================================================== */

/* Arka Plan Konsepti: 404 Sayfası Tarzı Radial Gradient */
.auth-body {
    font-family: 'Hanken Grotesk', sans-serif;
    min-height: 100vh;
    background: radial-gradient(ellipse at 20% 50%, #0f1923 0%, #1a0a00 40%, #0d0d0d 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* ── Yüzen Ateş Parçacıkları (Sparks) ── */
.sparks {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.spark {
    position: absolute;
    bottom: -10px;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #D4AF37;
    box-shadow: 0 0 6px 2px rgba(212,175,55,0.8);
    animation: float-up linear infinite;
    opacity: 0;
    will-change: transform;
}

.spark:nth-child(1)  { left: 10%; width:2px; height:2px; animation-duration: 6s; animation-delay: 0s; }
.spark:nth-child(2)  { left: 22%; background:#ff6633; box-shadow:0 0 6px 2px rgba(255,102,51,0.8); animation-duration: 8s; animation-delay: 1.2s; }
.spark:nth-child(3)  { left: 35%; animation-duration: 7s; animation-delay: 0.5s; }
.spark:nth-child(4)  { left: 50%; width:4px; height:4px; animation-duration: 9s; animation-delay: 2s; }
.spark:nth-child(5)  { left: 63%; background:#ff6633; box-shadow:0 0 6px 2px rgba(255,102,51,0.8); animation-duration: 6.5s; animation-delay: 0.8s; }
.spark:nth-child(6)  { left: 77%; animation-duration: 8.5s; animation-delay: 1.5s; }
.spark:nth-child(7)  { left: 88%; width:2px; height:2px; animation-duration: 7.5s; animation-delay: 3s; }
.spark:nth-child(8)  { left: 42%; animation-duration: 6.2s; animation-delay: 4s; }
.spark:nth-child(9)  { left: 58%; background:#ffaa00; box-shadow:0 0 6px 2px rgba(255,170,0,0.8); animation-duration: 10s; animation-delay: 0.3s; }
.spark:nth-child(10) { left: 5%;  animation-duration: 8s; animation-delay: 2.5s; }

@keyframes float-up {
    0%   { transform: translateY(0) scale(0); opacity: 0; }
    10%  { opacity: 1; transform: translateY(-8vh) scale(1); }
    90%  { opacity: 0.4; }
    100% { transform: translateY(-100vh) scale(0.3); opacity: 0; }
}

/* Glassmorphic Giriş/Kayıt Kutusu */
.auth-card {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 520px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    margin: 2rem 1rem;
    padding: 2.5rem;
}

.auth-card-wide {
    max-width: 640px;
}

/* Başlık ve Logo */
.auth-logo-area {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

/* Form Elemanları */
.auth-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #475569;
    margin-bottom: 0.375rem;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.auth-input {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    background-color: #f8fafc;
    color: #0f172a;
    transition: all 0.25s ease;
}

.auth-input:focus {
    outline: none;
    border-color: var(--heritage-gold, #D4AF37);
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

/* Şifre Göster/Gizle Konumu */
.auth-pass-wrapper {
    position: relative;
    width: 100%;
}

.auth-pass-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    cursor: pointer;
    user-select: none;
    font-size: 1.125rem;
}

.auth-pass-toggle:hover {
    color: var(--heritage-gold, #D4AF37);
}

/* Sosyal Login Butonları */
.social-login-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.625rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #334155;
    background-color: #ffffff;
    transition: all 0.2s ease;
    cursor: pointer;
}

.social-login-btn:hover {
    background-color: #f1f5f9;
    border-color: #94a3b8;
}

.social-login-btn i {
    font-size: 1rem;
}

/* Checkbox Alanları */
.auth-checkbox-label {
    font-size: 0.75rem;
    color: #475569;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
}

/* Modal Stilleri */
.auth-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 1.5rem;
}

.auth-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.auth-modal-backdrop {
    position: absolute;
    inset: 0;
    background-color: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(4px);
}

.auth-modal-container {
    position: relative;
    width: 100%;
    max-width: 680px;
    background-color: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    max-height: 80vh;
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
}

.auth-modal.active .auth-modal-container {
    transform: scale(1);
}

.auth-modal-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.auth-modal-title {
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.auth-modal-close-btn {
    border: 0;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    transition: color 0.2s ease;
}

.auth-modal-close-btn:hover {
    color: #ef4444;
}

.auth-modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    font-size: 0.875rem;
    color: #334155;
    line-height: 1.7;
    text-align: left;
}

.auth-modal-body p {
    margin-bottom: 1rem;
}

.auth-modal-body h3 {
    font-weight: 700;
    color: #0f172a;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.auth-modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
}

.auth-modal-btn {
    padding: 0.5rem 1.5rem;
    border-radius: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.auth-modal-btn-close {
    background-color: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
}

.auth-modal-btn-close:hover {
    background-color: #e2e8f0;
}

/* Sitenin genel modüllerini (Header, Navbar, Footer) gizleme kuralları */
body.hide-layout header,
body.hide-layout nav,
body.hide-layout footer,
body.hide-layout div.bg-heritage-dark,
body.hide-layout a[href*="wa.me"],
body.hide-layout #category-drawer-overlay,
body.hide-layout #category-drawer,
body.hide-layout #ajax-progress-bar {
    display: none !important;
}

body.hide-layout #app-main-content {
    padding: 0 !important;
    margin: 0 !important;
    max-width: none !important;
    width: 100% !important;
    min-height: 100vh !important;
}

