﻿/* ============================================
   GOOGLE FONTS - INTER FONTU
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ============================================
   GENEL RESET VE FONT TANIMLAMALARI
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
    color: #0f172a;
}

/* ============================================
   LOGIN SAYFASI STILLERI
   ============================================ */
.login-page {
    background: linear-gradient(135deg, #0a0f1c 0%, #0f172a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.login-container {
    width: 100%;
    max-width: 1350px;
    display: flex;
    background: #ffffff;
    border-radius: 2rem;
    overflow: hidden;
    box-shadow: 0 30px 50px -20px rgba(0, 0, 0, 0.4);
    margin: 20px;
}

/* SOL PANEL - Koyu Alan */
.login-brand {
    flex: 1.2;
    background: linear-gradient(145deg, #0b1c2c, #07121f);
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-bottom: 0.5rem;
}

.logo-image {
    width: 100%;
    max-width: 350px;
    height: auto;
    min-height: 110px;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
    margin-bottom: 0.5rem;
}

.brand-content {
    width: 100%;
    text-align: left;
}

.brand-tagline {
    font-size: 0.85rem;
    color: #94a3b8;
    font-weight: 400;
    margin-bottom: 1.5rem;
    letter-spacing: 0.3px;
}

.brand-quote p {
    font-size: 0.9rem;
    color: #cbd5e1;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
    color: #e2e8f0;
    font-weight: 500;
}

    .feature-item i {
        width: 1.4rem;
        font-size: 1rem;
        color: #38bdf8;
    }

.copyright {
    font-size: 0.7rem;
    color: #64748b;
    margin-top: 1.5rem;
    letter-spacing: 0.5px;
}

/* SAĞ PANEL - Form Alanı */
.login-form-section {
    flex: 1;
    padding: 2.5rem 2rem;
    background: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-bottom: 2rem;
}

.form-logo-image {
    max-width: 180px;
    height: auto;
    object-fit: contain;
    margin-bottom: 0.5rem;
}

/* Input Grupları */
.input-group {
    margin-bottom: 1.5rem;
}

    .input-group label {
        display: block;
        font-size: 0.75rem;
        font-weight: 700;
        letter-spacing: 1px;
        color: #334155;
        margin-bottom: 0.6rem;
        text-transform: uppercase;
        font-family: 'Inter', sans-serif;
    }

.input-field {
    position: relative;
}

    .input-field i {
        position: absolute;
        left: 1rem;
        top: 50%;
        transform: translateY(-50%);
        color: #94a3b8;
        font-size: 1rem;
        z-index: 1;
    }

    .input-field input {
        width: 100%;
        padding: 0.9rem 1rem 0.9rem 2.8rem;
        font-size: 0.95rem;
        border: 1.5px solid #e2e8f0;
        border-radius: 0.8rem;
        font-family: 'Inter', sans-serif;
        font-weight: 500;
        transition: all 0.2s ease;
        background: #ffffff;
        color: #0f172a;
    }

        .input-field input:focus {
            outline: none;
            border-color: #38bdf8;
            box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.1);
        }

        .input-field input::placeholder {
            color: #94a3b8;
            font-weight: 400;
            font-family: 'Inter', sans-serif;
        }

/* Şifre Göster/Gizle Butonu */
.toggle-pwd {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #94a3b8;
    font-size: 1rem;
    padding: 0;
    z-index: 1;
}

    .toggle-pwd:hover {
        color: #38bdf8;
    }

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0.5rem 0 1.8rem;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #334155;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}

    .checkbox input {
        width: 16px;
        height: 16px;
        cursor: pointer;
        accent-color: #38bdf8;
    }

.forgot-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: #0f172a;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    transition: color 0.2s;
}

    .forgot-link:hover {
        color: #38bdf8;
    }

/* Login Butonu */
.login-btn {
    width: 100%;
    padding: 0.9rem;
    background: #0f172a;
    border: none;
    border-radius: 0.8rem;
    color: white;
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.5px;
}

    .login-btn:hover {
        background: #1e293b;
        transform: translateY(-2px);
    }

    .login-btn i {
        font-size: 1rem;
    }

/* Home Link */
.home-link {
    font-size: 0.85rem;
    font-weight: 500;
    color: #64748b;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    transition: color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

    .home-link:hover {
        color: #38bdf8;
    }

/* Hata Mesajı */
.error-message {
    background: #fee2e2;
    color: #b91c1c;
    padding: 0.75rem 1rem;
    border-radius: 0.6rem;
    margin-bottom: 1.2rem;
    font-size: 0.8rem;
    display: none;
    align-items: center;
    gap: 0.6rem;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    border-left: 3px solid #b91c1c;
}

    .error-message.show {
        display: flex;
    }

    .error-message i {
        font-size: 1rem;
        color: #b91c1c;
    }

/* ============================================
   RESPONSIVE DÜZENLEMELER
   ============================================ */
@media (max-width: 1000px) {
    .login-container {
        flex-direction: column;
        max-width: 500px;
    }

    .login-brand {
        padding: 2rem 1.5rem;
    }

    .login-form-section {
        padding: 2rem 1.5rem;
    }

    .logo-image {
        max-width: 250px;
    }

    .brand-quote p {
        font-size: 0.85rem;
    }

    .feature-item {
        font-size: 0.85rem;
    }
}

@media (max-width: 550px) {
    .login-container {
        margin: 15px;
        border-radius: 1.5rem;
    }

    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }

    .login-form-section {
        padding: 1.5rem;
    }

    .login-brand {
        padding: 1.5rem;
    }

    .logo-image {
        max-width: 200px;
    }

    .page-title {
        font-size: 1.2rem;
    }
}

/* ============================================
   INPUT AUTOFILL STYLE DÜZELTMESİ
   ============================================ */
.input-field input:-webkit-autofill,
.input-field input:-webkit-autofill:hover,
.input-field input:-webkit-autofill:focus,
.input-field input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px white inset !important;
    box-shadow: 0 0 0 30px white inset !important;
    -webkit-text-fill-color: #0f172a !important;
    font-family: 'Inter', sans-serif !important;
}
