/* Genel Stil ve Değişkenler */
        :root {
            --primary-color: #007bff; /* Ana Mavi Renk */
            --primary-hover: #0056b3;
            --secondary-color: #6c757d;
            --background-color: #f8f9fa;
            --form-bg-color: #ffffff;
            --text-color: #212529;
            --light-text-color: #6c757d;
            --border-color: #dee2e6;
            --error-color: #dc3545;
            --error-bg: #f8d7da;
            --font-family: 'Poppins', sans-serif;
        }
        
        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }
        
        body {
            font-family: var(--font-family);
            background:
                radial-gradient(1200px circle at 10% 10%, rgba(0, 123, 255, 0.08), transparent 40%),
                radial-gradient(800px circle at 90% 90%, rgba(0, 123, 255, 0.06), transparent 40%),
                var(--background-color);
            color: var(--text-color);
            line-height: 1.6;
        }
        
        .login-container {
            display: flex;
            min-height: 100vh;
            width: 100%;
        }
        
        /* Sol Taraf: Markalaşma Alanı */
        .login-branding {
            width: 45%;
            background: linear-gradient(135deg, var(--primary-color), #0056b3);
            color: #fff;
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 40px;
            position: relative;
            overflow: hidden;
        }
        
        .login-branding::before {
            content: '';
            position: absolute;
            top: -50px;
            left: -50px;
            width: 200px;
            height: 200px;
            background-color: rgba(255, 255, 255, 0.1);
            border-radius: 50%;
        }
        
        .login-branding::after {
            content: '';
            position: absolute;
            bottom: -80px;
            right: -80px;
            width: 300px;
            height: 300px;
            background-color: rgba(255, 255, 255, 0.08);
            border-radius: 50%;
        }
        
        .branding-content {
            text-align: center;
            z-index: 1;
        }
        
        .branding-content .logo {
            max-width: 150px;
            margin-bottom: 30px;
        }
        
        .branding-content h1 {
            font-size: 2.2rem;
            font-weight: 600;
            margin-bottom: 15px;
        }
        
        .branding-content p {
            font-size: 1.1rem;
            opacity: 0.9;
        }
        
        
        /* Sağ Taraf: Form Alanı */
        .login-form-area {
            width: 55%;
            background-color: transparent;
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 40px;
        }
        
        .form-wrapper {
            width: 100%;
            max-width: 420px;
            background: rgba(255, 255, 255, 0.85);
            backdrop-filter: blur(12px);
            border: 1px solid rgba(222, 226, 230, 0.7);
            border-radius: 16px;
            padding: 28px;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
        }
        
        .form-wrapper h2 {
            font-size: 2rem;
            font-weight: 600;
            margin-bottom: 10px;
            background: linear-gradient(90deg, #0f4af2, #00b4ff);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
        }
        
        .form-wrapper .subtitle {
            color: var(--light-text-color);
            margin-bottom: 30px;
        }
        
        .form-group {
            margin-bottom: 20px;
        }
        
        .form-group label {
            display: block;
            font-weight: 500;
            margin-bottom: 8px;
        }

        /* Floating label */
        .floating-group {
            position: relative;
            margin-bottom: 22px;
        }

        .floating-group .floating-label {
            position: absolute;
            left: 45px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--light-text-color);
            pointer-events: none;
            transition: all 0.2s ease;
            padding: 0 6px;
        }

        .floating-group .input-element {
            width: 100%;
            padding: 14px 44px 14px 45px;
            border: 1px solid var(--border-color);
            border-radius: 10px;
            font-size: 1rem;
            background-color: rgba(255, 255, 255, 0.9);
            transition: border-color 0.2s ease, box-shadow 0.2s ease;
        }

        .floating-group .input-element:focus {
            outline: none;
            border-color: var(--primary-color);
            box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2);
        }

        .floating-group .input-element:focus ~ .floating-label,
        .floating-group .input-element:not(:placeholder-shown) ~ .floating-label {
            top: 0;
            transform: translateY(-50%) scale(0.85);
            background: var(--form-bg-color);
            color: var(--primary-color);
        }
        .floating-group .input-element:valid ~ .floating-label {
            top: 0;
            transform: translateY(-50%) scale(0.85);
            background: var(--form-bg-color);
            color: var(--primary-color);
        }
        .floating-group .input-element:-webkit-autofill ~ .floating-label {
            top: 0;
            transform: translateY(-50%) scale(0.85);
            background: var(--form-bg-color);
            color: var(--primary-color);
        }
        .floating-group .input-element:-moz-autofill ~ .floating-label {
            top: 0;
            transform: translateY(-50%) scale(0.85);
            background: var(--form-bg-color);
            color: var(--primary-color);
        }

        .floating-group.filled .floating-label {
            top: 0;
            transform: translateY(-50%) scale(0.85);
            background: var(--form-bg-color);
            color: var(--primary-color);
        }
        
        .input-wrapper {
            position: relative;
        }
        
        .input-wrapper .icon {
            position: absolute;
            left: 15px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--light-text-color);
            transition: color 0.3s ease;
        }
        
        .input-wrapper input {
            width: 100%;
            padding: 12px 44px 12px 45px;
            border: 1px solid var(--border-color);
            border-radius: 10px;
            font-size: 1rem;
            transition: border-color 0.3s ease, box-shadow 0.3s ease;
            background-color: rgba(255, 255, 255, 0.9);
        }
        
        .input-wrapper input:focus {
            outline: none;
            border-color: var(--primary-color);
            box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2);
        }
        
        .input-wrapper input:focus + .icon, .input-wrapper:focus-within .icon {
            color: var(--primary-color);
        }
        
        
        .form-options {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 25px;
            font-size: 0.9rem;
        }

        /* Switch style for remember me */
        .switch-input {
            position: absolute;
            opacity: 0;
            width: 0;
            height: 0;
        }

        .switch-label {
            position: relative;
            padding-left: 56px;
            cursor: pointer;
            user-select: none;
        }

        .switch-label::before {
            content: '';
            position: absolute;
            left: 0;
            top: 50%;
            transform: translateY(-50%);
            width: 44px;
            height: 24px;
            background: #e9ecef;
            border-radius: 999px;
            transition: background 0.2s ease;
        }

        .switch-label::after {
            content: '';
            position: absolute;
            left: 2px;
            top: 50%;
            transform: translateY(-50%);
            width: 20px;
            height: 20px;
            background: #fff;
            border-radius: 50%;
            box-shadow: 0 2px 6px rgba(0,0,0,0.2);
            transition: left 0.2s ease, background 0.2s ease;
        }

        .switch-input:checked + .switch-label::before {
            background: var(--primary-color);
        }

        .switch-input:checked + .switch-label::after {
            left: 22px;
            background: #fff;
        }
        
        .remember-me {
            display: flex;
            align-items: center;
        }
        
        .remember-me input[type="checkbox"] {
            margin-right: 8px;
        }
        
        .forgot-password {
            color: var(--primary-color);
            text-decoration: none;
            transition: color 0.3s ease;
        }
        
        .forgot-password:hover {
            color: var(--primary-hover);
        }
        
        .btn-login {
            width: 100%;
            padding: 14px;
            background-image: linear-gradient(135deg, #0f4af2, #00b4ff);
            color: #fff;
            border: none;
            border-radius: 10px;
            font-size: 1.1rem;
            font-weight: 600;
            cursor: pointer;
            transition: transform 0.2s ease, box-shadow 0.3s ease;
            box-shadow: 0 8px 24px rgba(0, 123, 255, 0.25);
            position: relative;
            overflow: hidden;
        }
        
        .btn-login:hover {
            transform: translateY(-2px);
            box-shadow: 0 12px 28px rgba(0, 86, 179, 0.3);
        }

        .btn-login::after {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 30%;
            height: 100%;
            background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.35) 50%, rgba(255,255,255,0) 100%);
            transform: skewX(-20deg);
            transition: left 0.6s ease;
        }

        .btn-login:hover::after {
            left: 130%;
        }
        
        .footer-text {
            text-align: center;
            margin-top: 30px;
            color: var(--light-text-color);
        }
        
        .footer-text a {
            color: var(--primary-color);
            font-weight: 500;
            text-decoration: none;
        }
        
        /* Hata Mesajı Stili */
        .alert.error {
            background-color: var(--error-bg);
            color: var(--error-color);
            border: 1px solid var(--error-color);
            padding: 12px 15px;
            border-radius: 8px;
            margin-bottom: 20px;
            text-align: center;
            animation: fadeIn 250ms ease-out;
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(-6px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        
        /* Mobil Uyum (Responsive) */
        @media (max-width: 768px) {
            .login-container {
                flex-direction: column;
            }
        
            .login-branding {
                width: 100%;
                min-height: 250px;
                text-align: center;
            }
            
            .login-branding h1 {
                font-size: 1.8rem;
            }
        
            .login-form-area {
                width: 100%;
                padding: 30px 20px;
            }
            .form-wrapper {
                background: rgba(255, 255, 255, 0.92);
            }
        }
/* ============================================= */
/*       ANİMASYONLU ARKA PLAN STİLLERİ          */
/* ============================================= */

/* Ana sarmalayıcıya 'position: relative' ekliyoruz ki,
   içindeki mutlak konumlandırılmış şekiller ona göre hizalansın. */
   .login-branding {
    /* ... mevcut stilleriniz (width, background, color vb.) ... */
    position: relative; /* Bu satır ÇOK ÖNEMLİ */
    overflow: hidden;   /* Bu da önemli, şekillerin dışarı taşmasını engeller. */
}

/* Animasyonlu şekillerin listesi */
.background-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    list-style: none; /* Liste noktalarını kaldır */
    margin: 0;
    padding: 0;
}

.background-shapes li {
    position: absolute;
    display: block;
    width: 20px;  /* Başlangıç boyutu */
    height: 20px; /* Başlangıç boyutu */
    background: rgba(255, 255, 255, 0.15); /* Yarı saydam beyaz */
    border-radius: 4px; /* Hafif yuvarlak kenarlar */
    bottom: -150px; /* Ekranın altından başlasınlar */
    animation: moveUp 25s linear infinite; /* Animasyonu uygula */
}

/* Her bir şekle farklı pozisyon, boyut ve animasyon gecikmesi veriyoruz.
   Bu, rastgele ve doğal bir görünüm sağlar. */

.background-shapes li:nth-child(1) {
    left: 25%;
    width: 80px;
    height: 80px;
    animation-delay: 0s;
}

.background-shapes li:nth-child(2) {
    left: 10%;
    width: 20px;
    height: 20px;
    animation-delay: 2s;
    animation-duration: 12s;
}

.background-shapes li:nth-child(3) {
    left: 70%;
    width: 20px;
    height: 20px;
    animation-delay: 4s;
}

.background-shapes li:nth-child(4) {
    left: 40%;
    width: 60px;
    height: 60px;
    animation-delay: 0s;
    animation-duration: 18s;
}

.background-shapes li:nth-child(5) {
    left: 65%;
    width: 20px;
    height: 20px;
    animation-delay: 0s;
}

.background-shapes li:nth-child(6) {
    left: 75%;
    width: 110px;
    height: 110px;
    animation-delay: 3s;
}

.background-shapes li:nth-child(7) {
    left: 35%;
    width: 150px;
    height: 150px;
    animation-delay: 7s;
}

.background-shapes li:nth-child(8) {
    left: 50%;
    width: 25px;
    height: 25px;
    animation-delay: 15s;
    animation-duration: 45s;
}

.background-shapes li:nth-child(9) {
    left: 20%;
    width: 15px;
    height: 15px;
    animation-delay: 2s;
    animation-duration: 35s;
}

.background-shapes li:nth-child(10) {
    left: 85%;
    width: 150px;
    height: 150px;
    animation-delay: 0s;
    animation-duration: 11s;
}


/* Animasyonun kendisi (@keyframes) */
@keyframes moveUp {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
        border-radius: 4px;
    }
    100% {
        transform: translateY(-1000px) rotate(720deg); /* Yukarı hareket et ve dönsün */
        opacity: 0;
        border-radius: 50%; /* Yukarı çıkarken daireye dönüşsün */
    }
}


/* Son olarak, branding içeriğinin animasyonun ÜSTÜNDE kalmasını sağlıyoruz. */
.branding-content {
    position: relative;
    z-index: 2; /* Bu, içeriğin animasyon katmanının üzerinde olmasını sağlar */
    /* ... mevcut stilleriniz (text-align vb.) ... */
}

        .main-logo {
            width: 160px;
            height: auto;
            display: block;
            margin: 0 auto 26px auto;
        }

        .toggle-password {
            position: absolute;
            right: 12px;
            top: 50%;
            transform: translateY(-50%);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 32px;
            height: 32px;
            border: none;
            background: transparent;
            color: var(--light-text-color);
            cursor: pointer;
            border-radius: 8px;
            transition: color 0.2s ease, background-color 0.2s ease;
        }

        .toggle-password:hover {
            color: var(--primary-color);
            background-color: rgba(0,0,0,0.04);
        }

        @media (prefers-color-scheme: dark) {
            :root {
                --background-color: #0f141a;
                --form-bg-color: #121a22;
                --text-color: #e6e8ea;
                --light-text-color: #9aa4ad;
                --border-color: #243242;
            }
            .form-wrapper {
                background: rgba(18, 26, 34, 0.8);
                border: 1px solid rgba(36, 50, 66, 0.7);
                box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
            }
            .input-wrapper input {
                background-color: rgba(255,255,255,0.06);
            }
            .forgot-password { color: #8ab4f8; }
        }

        /* Divider */
        .divider {
            position: relative;
            margin: 18px 0 10px;
            text-align: center;
            color: var(--light-text-color);
            font-size: 0.9rem;
        }
        .divider span { position: relative; z-index: 1; background: var(--form-bg-color); padding: 0 10px; }
        .divider::before {
            content: '';
            position: absolute;
            left: 0; right: 0; top: 50%; transform: translateY(-50%);
            height: 1px; background: var(--border-color);
        }

        /* Social buttons */
        .social-login { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
        .social-btn {
            display: inline-flex; align-items: center; justify-content: center;
            gap: 8px; padding: 12px; border-radius: 10px; border: 1px solid var(--border-color);
            background: rgba(255,255,255,0.9); color: var(--text-color); cursor: pointer;
            transition: transform 0.15s ease, box-shadow 0.2s ease;
        }
        .social-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
        .social-btn i { font-size: 1rem; }
        .social-btn.google { border-color: #e2e6ea; }
        .social-btn.microsoft { border-color: #e2e6ea; }

        /* Aurora overlay */
        body::after {
            content: '';
            position: fixed;
            inset: 0;
            pointer-events: none;
            background:
              radial-gradient(800px 350px at 10% 20%, rgba(0, 180, 255, 0.12), transparent 50%),
              radial-gradient(600px 300px at 90% 80%, rgba(15, 74, 242, 0.12), transparent 50%);
            mix-blend-mode: soft-light;
            animation: auroraMove 12s ease-in-out infinite alternate;
        }
        @keyframes auroraMove {
            from { transform: translateX(-10px) translateY(0); }
            to { transform: translateX(10px) translateY(-6px); }
        }
 
        .auth-shell {
            min-height: 100vh;
            display: grid;
            place-items: center;
            padding: 40px 20px;
            position: relative;
        }

        .auth-card {
            width: 100%;
            max-width: 480px;
            background: rgba(255, 255, 255, 0.9);
            backdrop-filter: blur(12px);
            border: 1px solid rgba(222, 226, 230, 0.7);
            border-radius: 20px;
            padding: 32px;
            box-shadow: 0 24px 60px rgba(0, 0, 0, 0.08);
            position: relative;
        }

        .brand .main-logo {
            width: 160px;
            height: auto;
            display: block;
            margin: 0 auto 26px auto;
        }

        .auth-title {
            font-size: 2rem;
            font-weight: 700;
            background: linear-gradient(90deg, #0f4af2, #00b4ff);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
            margin-bottom: 10px;
        }

        .auth-card::before {
            content: '';
            position: absolute;
            inset: -1px;
            border-radius: 22px;
            padding: 1px;
            background: linear-gradient(135deg, rgba(15,74,242,0.35), rgba(0,180,255,0.35));
            -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
            -webkit-mask-composite: xor;
            mask-composite: exclude;
        }

        @media (prefers-color-scheme: dark) {
            .auth-card { background: rgba(18, 26, 34, 0.9); border: 1px solid rgba(36, 50, 66, 0.7); box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4); }
            .auth-card::before { background: linear-gradient(135deg, rgba(15,74,242,0.5), rgba(0,180,255,0.45)); }
        }
 