/* ==========================================
   ERP SaaS - Admin Giriş Sayfası
   Premium Dark Glassmorphism Tasarım
   ========================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --navy: #0a0e27;
    --navy-light: #111638;
    --navy-mid: #161b3d;
    --purple: #7c3aed;
    --purple-light: #a78bfa;
    --purple-glow: rgba(124, 58, 237, 0.4);
    --cyan: #06b6d4;
    --cyan-glow: rgba(6, 182, 212, 0.3);
    --emerald: #10b981;
    --white: #f0f0f5;
    --white-soft: rgba(240, 240, 245, 0.85);
    --text-muted: #8b8fa3;
    --danger: #ef4444;
    --glass-bg: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(255, 255, 255, 0.08);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--navy);
    min-height: 100vh;
    overflow: hidden;
    color: var(--white);
}

/* ==========================================
   ANA KONTEYNER - Split Layout
   ========================================== */
.giris-konteyner {
    display: flex;
    min-height: 100vh;
    position: relative;
}

/* ==========================================
   SOL PANEL - Marka & Özellikler
   ========================================== */
.giris-sol {
    flex: 1.1;
    background: linear-gradient(160deg, #0a0e27 0%, #111638 40%, #1a1150 70%, #0d1235 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

/* Animasyonlu mesh arka plan */
.giris-sol::before {
    content: '';
    position: absolute;
    top: -30%;
    left: -30%;
    width: 160%;
    height: 160%;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(124, 58, 237, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(6, 182, 212, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 60% 80%, rgba(16, 185, 129, 0.08) 0%, transparent 50%);
    animation: meshFloat 12s ease-in-out infinite alternate;
}

.giris-sol::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 30% 70%, rgba(124, 58, 237, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 70% 30%, rgba(6, 182, 212, 0.06) 0%, transparent 40%);
    animation: meshPulse 8s ease-in-out infinite;
}

@keyframes meshFloat {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-3%, 2%) scale(1.02); }
    100% { transform: translate(2%, -1%) scale(1.01); }
}

@keyframes meshPulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.giris-marka {
    text-align: center;
    position: relative;
    z-index: 2;
    margin-bottom: 3.5rem;
}

.marka-ikon {
    width: 88px;
    height: 88px;
    background: linear-gradient(135deg, var(--purple), var(--cyan));
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.75rem;
    font-size: 2.2rem;
    color: white;
    box-shadow:
        0 20px 60px rgba(124, 58, 237, 0.35),
        0 0 40px rgba(124, 58, 237, 0.15);
    animation: markaGlow 4s ease-in-out infinite alternate;
    position: relative;
}

.marka-ikon::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 26px;
    background: linear-gradient(135deg, var(--purple), var(--cyan));
    z-index: -1;
    opacity: 0.4;
    filter: blur(12px);
}

@keyframes markaGlow {
    0% { box-shadow: 0 20px 60px rgba(124, 58, 237, 0.35), 0 0 40px rgba(124, 58, 237, 0.15); }
    100% { box-shadow: 0 20px 60px rgba(6, 182, 212, 0.35), 0 0 40px rgba(6, 182, 212, 0.15); }
}

.giris-marka h1 {
    color: white;
    font-size: 2.75rem;
    font-weight: 800;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #ffffff, #c4b5fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.giris-marka p {
    color: var(--text-muted);
    font-size: 1rem;
    margin-top: 0.5rem;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.giris-ozellikler {
    position: relative;
    z-index: 2;
}

.ozellik-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: rgba(255, 255, 255, 0.7);
    padding: 0.85rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 400;
    border-radius: 12px;
    transition: all 0.3s ease;
    margin-bottom: 0.25rem;
}

.ozellik-item:hover {
    background: rgba(124, 58, 237, 0.08);
    color: white;
}

.ozellik-item i {
    font-size: 1.3rem;
    color: var(--purple-light);
    width: 28px;
    text-align: center;
    filter: drop-shadow(0 0 6px rgba(124, 58, 237, 0.4));
}

/* ==========================================
   SAĞ PANEL - Form Alanı (Glass)
   ========================================== */
.giris-sag {
    flex: 0.9;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    background: linear-gradient(160deg, #0d1235 0%, #0a0e27 100%);
    position: relative;
}

.giris-sag::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 50%, rgba(124, 58, 237, 0.06) 0%, transparent 70%);
}

.giris-form-alan {
    width: 100%;
    max-width: 440px;
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow:
        0 32px 64px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    animation: formSlideIn 0.6s ease-out;
}

@keyframes formSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.giris-form-alan h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
    letter-spacing: -0.3px;
}

.giris-aciklama {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
    line-height: 1.5;
}

/* Form elemanları */
.form-grubu {
    margin-bottom: 1.5rem;
}

.form-etiket {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
    letter-spacing: 0.3px;
}

.form-etiket i {
    color: var(--purple-light);
    margin-right: 0.25rem;
}

.form-input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.04);
    color: white;
    outline: none;
}

.form-input:focus {
    border-color: var(--purple);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.2), 0 0 20px rgba(124, 58, 237, 0.1);
    background: rgba(255, 255, 255, 0.06);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

/* Şifre alanı */
.sifre-alan {
    position: relative;
}

.sifre-alan .form-input {
    padding-right: 3rem;
}

.sifre-goster-btn {
    position: absolute;
    right: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0.25rem;
    transition: color 0.3s;
}

.sifre-goster-btn:hover {
    color: var(--purple-light);
}

/* Giriş butonu */
.giris-btn {
    width: 100%;
    padding: 0.9rem;
    background: linear-gradient(135deg, var(--purple), #6d28d9);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
    position: relative;
    overflow: hidden;
}

.giris-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.giris-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(124, 58, 237, 0.45), 0 0 20px rgba(124, 58, 237, 0.2);
}

.giris-btn:hover::before {
    transform: translateX(100%);
}

.giris-btn:active {
    transform: translateY(0);
}

.giris-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Hata mesajı */
.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #fca5a5;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-size: 0.88rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    backdrop-filter: blur(10px);
}

/* d-none utility */
.d-none {
    display: none !important;
}

/* Spinner */
.spinner-border {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

.spinner-border-sm {
    width: 0.875rem;
    height: 0.875rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.me-2 { margin-right: 0.5rem; }

/* Alt bilgi */
.giris-alt {
    text-align: center;
    margin-top: 2rem;
    color: rgba(255, 255, 255, 0.25);
    font-size: 0.78rem;
    letter-spacing: 0.3px;
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 968px) {
    .giris-konteyner {
        flex-direction: column;
    }

    .giris-sol {
        padding: 2.5rem 2rem;
        min-height: auto;
        flex: none;
    }

    .giris-marka {
        margin-bottom: 1.5rem;
    }

    .giris-marka h1 {
        font-size: 2rem;
    }

    .marka-ikon {
        width: 64px;
        height: 64px;
        font-size: 1.6rem;
        border-radius: 18px;
    }

    .giris-ozellikler {
        display: none;
    }

    .giris-sag {
        flex: 1;
        padding: 2rem 1.5rem;
    }

    .giris-form-alan {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .giris-form-alan {
        padding: 1.5rem;
        border-radius: 20px;
    }

    .giris-form-alan h2 {
        font-size: 1.4rem;
    }
}
