/* Reset ve Temel Stiller */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', 'Inter', sans-serif;
    background: linear-gradient(135deg, #a78bfa 0%, #c084fc 50%, #e879f9 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
}

/* Ana Container */
.login-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Login Box */
.login-box {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 400px;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

/* Sol Bölüm - Form */
.login-form-section {
    padding: 30px 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
}

.form-content {
    width: 100%;
    max-width: 400px;
}

/* Brand Section */
.brand-section {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f1f5f9;
}

.brand-name {
    font-size: 2.8rem;
    font-weight: 800;
    color: #8b5cf6;
    margin-bottom: 5px;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-slogan {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}


/* Form Stilleri */
.login-form {
    margin-bottom: 30px;
}

.input-group {
    position: relative;
    margin-bottom: 25px;
}

.input-icon {
    position: absolute;
    left: 22px;
    top: 50%;
    transform: translateY(-50%);
    color: #8b5cf6;
    font-size: 1.2rem;
    z-index: 3;
    pointer-events: none; /* Icon'un tıklanmasını engelle */
}

.input-group input {
    width: 100%;
    padding: 22px 20px 22px 60px;
    border: 2px solid #e2e8f0;
    border-radius: 18px;
    font-size: 1.1rem;
    background: #f8f4ff;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    outline: none;
    height: 65px;
    font-weight: 500;
    color: #374151;
    will-change: border-color, background, box-shadow;
    position: relative;
    z-index: 1;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(139, 92, 246, 0.1);
}

.input-group input:focus {
    border-color: #8b5cf6;
    background: white;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.input-group input::placeholder {
    color: #a0aec0;
}

/* Form Seçenekleri */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.remember-me {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.9rem;
    color: #4a5568;
}

.remember-me input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #e2e8f0;
    border-radius: 4px;
    margin-right: 8px;
    position: relative;
    transition: border-color 0.2s ease, background 0.2s ease;
    will-change: border-color, background;
}

.remember-me input[type="checkbox"]:checked + .checkmark {
    background: #667eea;
    border-color: #667eea;
}

.remember-me input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.forgot-password {
    color: #667eea;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease;
    will-change: color;
}

.forgot-password:hover {
    color: #5a67d8;
}

/* Giriş Butonu */
.login-btn {
    width: 100%;
    padding: 22px;
    background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
    color: white;
    border: none;
    border-radius: 18px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    height: 65px;
    letter-spacing: 0.5px;
    will-change: transform;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.login-btn:active {
    transform: translateY(0);
}

/* Divider */
.divider {
    text-align: center;
    margin: 30px 0;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e2e8f0;
}

.divider span {
    background: white;
    padding: 0 20px;
    color: #a0aec0;
    font-size: 0.9rem;
}

/* Sosyal Medya Giriş */
.social-login {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.social-btn {
    width: 100%;
    padding: 18px;
    border: 2px solid #e2e8f0;
    border-radius: 18px;
    background: white;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    height: 60px;
    will-change: transform;
}

.dealership-btn {
    color: #059669;
}

.dealership-btn:hover {
    border-color: #059669;
    background: #ecfdf5;
}

.contact-btn {
    color: #dc2626;
}

.contact-btn:hover {
    border-color: #dc2626;
    background: #fef2f2;
}

.social-btn i {
    font-size: 1.2rem;
}

/* Sağ Bölüm - Modül Kutucukları */
.modules-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 30px 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.modules-content {
    text-align: center;
    color: white;
    z-index: 2;
    position: relative;
    width: 100%;
}

.modules-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: #ffffff;
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    max-width: 320px;
    margin: 0 auto;
}

.module-card {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 18px 10px;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    will-change: transform;
}

.module-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(168, 85, 247, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.module-card:hover::before {
    opacity: 1;
}

.module-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.25);
}

.module-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.module-card:hover .module-icon {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.module-icon i {
    font-size: 1.2rem;
    color: #ffffff;
    transition: all 0.3s ease;
}

.module-card:hover .module-icon i {
    color: #ffffff;
    transform: scale(1.1);
}

.module-title {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    position: relative;
    z-index: 2;
}

/* Arka Plan Dekoratif Elementler */
.bg-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.bg-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 8s ease-in-out infinite;
}

.circle-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    left: -10%;
    animation-delay: 0s;
}

.circle-2 {
    width: 200px;
    height: 200px;
    bottom: 20%;
    right: -5%;
    animation-delay: 3s;
}

.circle-3 {
    width: 150px;
    height: 150px;
    top: 50%;
    left: 80%;
    animation-delay: 6s;
}

/* Responsive Tasarım */
@media (max-width: 768px) {
    .login-box {
        grid-template-columns: 1fr;
        margin: 15px;
        border-radius: 15px;
        min-height: auto;
        max-width: 100%;
    }
    
    .login-form-section {
        padding: 25px 20px;
    }
    
    .modules-section {
        padding: 25px 20px;
        order: 2;
    }
    
    .brand-name {
        font-size: 2.2rem;
    }
    
    .brand-slogan {
        font-size: 0.8rem;
    }
    
    .modules-title {
        font-size: 1.3rem;
        margin-bottom: 20px;
    }
    
    .modules-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        max-width: 280px;
    }
    
    .module-card {
        padding: 18px 12px;
    }
    
    .module-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 10px;
    }
    
    .module-icon i {
        font-size: 1.2rem;
    }
    
    .module-title {
        font-size: 0.9rem;
    }
    
    .input-group input {
        height: 55px;
        padding: 18px 18px 18px 50px;
        font-size: 16px; /* iOS zoom'u engellemek için */
        -webkit-appearance: none;
        touch-action: manipulation;
    }
    
    .login-btn {
        height: 55px;
        padding: 18px;
    }
    
    .social-btn {
        height: 50px;
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .login-container {
        padding: 8px;
    }
    
    .login-form-section {
        padding: 20px 15px;
    }
    
    .modules-section {
        padding: 20px 15px;
    }
    
    .brand-name {
        font-size: 2rem;
    }
    
    .brand-slogan {
        font-size: 0.75rem;
    }
    
    .brand-section {
        margin-bottom: 15px;
        padding-bottom: 12px;
    }
    
    .modules-title {
        font-size: 1.2rem;
        margin-bottom: 18px;
    }
    
    .modules-grid {
        max-width: 250px;
        gap: 10px;
    }
    
    .module-card {
        padding: 15px 10px;
    }
    
    .module-icon {
        width: 35px;
        height: 35px;
        margin-bottom: 8px;
    }
    
    .module-icon i {
        font-size: 1.1rem;
    }
    
    .module-title {
        font-size: 0.85rem;
    }
    
    .input-group input {
        height: 50px;
        padding: 15px 15px 15px 45px;
        font-size: 16px; /* iOS zoom'u engellemek için */
        -webkit-appearance: none;
        touch-action: manipulation;
        z-index: 1;
        position: relative;
    }
    
    .input-icon {
        left: 18px;
        font-size: 1rem;
        pointer-events: none; /* Mobilde icon'un tıklanmasını engelle */
    }
    
    .login-btn {
        height: 50px;
        padding: 15px;
        font-size: 1rem;
    }
    
    .social-btn {
        height: 45px;
        padding: 12px;
        font-size: 1rem;
    }
    
    .form-options {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    
    .divider {
        margin: 20px 0;
    }
}
