/* admin-login.css - SABİT RESPONSIVE TASARIM */

/* Reset ve Temel Stiller */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: 'Poppins', sans-serif;
    background: #0f172a;
    width: 100%;
    height: 100%;
    overflow-x: hidden; /* Yatay scroll engelle */
}

/* Ana Container */
.login-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
    overflow: hidden;
}

/* ===== SOL PANEL ===== */
.login-left {
    flex: 1.2;
    background: 
        linear-gradient(rgba(34, 30, 14, 0.85), rgba(42, 38, 15, 0.856)),
        url('../images/banner.png') center/cover no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem 2rem;
    position: relative;
    overflow: hidden;
}

/* Sol panel için arkaplan efekti */
.login-left::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(249, 115, 22, 0.1) 0%, transparent 60%);
    z-index: 1;
}

.login-left-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #1678f9 0%, #0c5aea 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    box-shadow: 0 8px 25px rgba(64, 22, 249, 0.3);
    flex-shrink: 0;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #16b1f9 0%, #4f3cfb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

/* Hoşgeldiniz Bölümü */
.welcome-section {
    margin-bottom: 2rem;
    transform: translateY(100px); /* İstediğin kadar aşağı indir */
}

.welcome-text h1 {
    font-size: clamp(2rem, 4vw, 3.5rem); /* Responsive font */
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    color: white;
    word-break: break-word;
}

.welcome-text h2 {
    font-size: clamp(1.5rem, 2.5vw, 2.2rem);
    font-weight: 700;
    color: #16a6f9;
    margin-bottom: 1.5rem;
    word-break: break-word;
}

.hero-image {
    width: 100%;
    height: clamp(120px, 20vw, 200px); /* Responsive height */
    background: linear-gradient(135deg, rgba(59, 49, 30, 0.8), rgba(42, 33, 15, 0.9));
    border-radius: 16px;
    margin: 1.5rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(26, 22, 249, 0.2);
    position: relative;
    overflow: hidden;
    max-width: 500px;
}

.hero-image-placeholder {
    width: clamp(60px, 10vw, 100px);
    height: clamp(60px, 10vw, 100px);
    background: linear-gradient(135deg, #1678f9 0%, #0c65ea 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(2rem, 4vw, 3rem);
    color: white;
    box-shadow: 0 10px 30px rgba(22, 37, 249, 0.4);
    z-index: 2;
}

.description p {
    color: #cbd5e1;
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    line-height: 1.6;
    max-width: 100%;
}

/* Özellikler - Mobilde gizli */
.features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
    display: none; /* Mobilde tamamen gizli */
}

.feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(30, 41, 59, 0.6);
    border-radius: 12px;
    border: 1px solid rgba(249, 115, 22, 0.1);
    transition: all 0.3s ease;
}

/* İstatistikler */
.stats {
    display: flex;
    justify-content: space-between;
    padding: 1.5rem;
    background: rgba(30, 41, 59, 0.6);
    border-radius: 12px;
    border: 1px solid rgba(249, 115, 22, 0.1);
    margin-top: auto;
    flex-wrap: wrap;
    gap: 1rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    min-width: 80px;
}

.stat-number {
    font-size: clamp(1.3rem, 2vw, 1.8rem);
    font-weight: 700;
    color: #165ef9;
    text-align: center;
}

.stat-label {
    font-size: clamp(0.8rem, 1vw, 0.9rem);
    color: #cbd5e1;
    text-align: center;
    word-break: break-word;
}

/* ===== SAĞ PANEL - LOGİN FORM ===== */
.login-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    position: relative;
    overflow-y: auto; /* Sadece dikey scroll */
    min-height: 100vh;
}

/* Form Wrapper - FIXED */
.login-form-wrapper {
    width: 100%;
    max-width: 450px;
    position: relative;
    z-index: 1;
    padding: 1rem;
    margin: auto;
}

/* Login Form Container */
.login-form-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: clamp(1.5rem, 3vw, 3rem);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(255, 255, 255, 0.8) inset;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Form Header */
.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-logo {
    width: clamp(60px, 10vw, 80px);
    height: clamp(60px, 10vw, 80px);
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, #16b1f9 0%, #0cabea 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    color: white;
    box-shadow: 0 8px 25px rgba(22, 177, 249, 0.3);
}

.form-header h1 {
    font-size: clamp(1.5rem, 2.5vw, 2.2rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #169ef9 0%, #3cb5fb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    word-break: break-word;
}

.form-header p {
    color: #64748b;
    font-size: clamp(0.9rem, 1.2vw, 1rem);
    font-weight: 500;
    line-height: 1.4;
}

/* Hata Mesajı */
.error-message {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(239, 68, 68, 0.05) 100%);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #dc2626;
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: clamp(0.85rem, 1vw, 0.95rem);
    animation: fadeIn 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

/* Form Stilleri */
.login-form {
    margin-bottom: 1.5rem;
    width: 100%;
}

.form-group {
    margin-bottom: 1.25rem;
    width: 100%;
}

.input-with-icon {
    position: relative;
    width: 100%;
}

.input-with-icon i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #1693f9;
    font-size: clamp(1rem, 1.2vw, 1.1rem);
    z-index: 1;
}

.form-control {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    background: rgba(241, 245, 249, 0.9);
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    color: #1e293b;
    font-size: clamp(0.95rem, 1.1vw, 1rem);
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    box-sizing: border-box;
    min-height: 50px;
}

.form-control:focus {
    outline: none;
    border-color: #1693f9;
    background: white;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.form-control::placeholder {
    color: #94a3b8;
    font-size: clamp(0.9rem, 1vw, 0.95rem);
}

.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: clamp(1rem, 1.2vw, 1.1rem);
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    z-index: 2;
    min-width: 40px;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Form Seçenekleri */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
    width: 100%;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: #64748b;
    font-size: clamp(0.85rem, 1vw, 0.95rem);
    user-select: none;
    flex-shrink: 0;
}

.checkbox-container input {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #cbd5e1;
    border-radius: 4px;
    background: white;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.forgot-link {
    color: #16b1f9;
    text-decoration: none;
    font-size: clamp(0.85rem, 1vw, 0.95rem);
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    white-space: nowrap;
}

/* Login Butonu */
.login-button {
    width: 100%;
    padding: clamp(1rem, 1.5vw, 1.1rem);
    background: linear-gradient(135deg, #1680f9 0%, #0c86ea 100%);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: clamp(1rem, 1.2vw, 1.1rem);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
    margin-bottom: 1.5rem;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Form Footer */
.security-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(249, 115, 22, 0.08);
    border: 1px solid rgba(249, 115, 22, 0.15);
    border-radius: 8px;
    color: #64748b;
    font-size: clamp(0.8rem, 0.9vw, 0.85rem);
    margin-bottom: 1.5rem;
    width: 100%;
    box-sizing: border-box;
}

/* Login Footer */
.login-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
    flex-wrap: wrap;
    gap: 1rem;
    width: 100%;
}

.back-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #64748b;
    text-decoration: none;
    font-size: clamp(0.85rem, 1vw, 0.95rem);
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 6px;
    flex-shrink: 0;
}

.help-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #64748b;
    font-size: clamp(0.8rem, 0.9vw, 0.9rem);
    flex-shrink: 0;
}

/* ===== RESPONSIVE DÜZENLEMELER ===== */

/* Tablet ve küçük laptop */
@media (max-width: 1024px) {
    .login-container {
        flex-direction: column;
        min-height: 100vh;
        overflow-y: auto;
    }
    
    .login-left {
        flex: 0 0 auto;
        padding: 2rem 1.5rem;
        min-height: 40vh;
        max-height: none;
    }
    
    .login-right {
        flex: 1;
        padding: 1.5rem 1rem;
        min-height: 60vh;
        align-items: flex-start;
        overflow-y: visible;
    }
    
    .login-form-wrapper {
        margin-top: 0;
        padding: 0;
        max-width: 500px;
    }
    
    .login-form-container {
        margin: 0 auto;
    }
    
    /* Mobilde features gösterilsin mi? İstersen aç */
    .features {
        display: none; /* Hala gizli */
    }
}

/* Tablet */
@media (max-width: 768px) {
    .login-left {
        min-height: 35vh;
        padding: 1.5rem 1rem;
    }
    
    .login-right {
        min-height: 65vh;
        padding: 1rem;
    }
    
    .login-form-container {
        padding: 1.5rem;
        border-radius: 16px;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .forgot-link {
        align-self: flex-end;
    }
    
    .login-footer {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .stats {
        padding: 1rem;
        gap: 0.75rem;
    }
    
    .stat-item {
        min-width: 70px;
    }
}

/* Mobil (Küçük ekran) */
@media (max-width: 480px) {
    html, body {
        overflow-x: hidden;
    }
    
    .login-container {
        min-height: 100vh;
        overflow-x: hidden;
    }
    
    .login-left {
        min-height: 30vh;
        padding: 1rem;
    }
    
    .login-right {
        min-height: 70vh;
        padding: 1rem 0.5rem;
    }
    
    .login-form-wrapper {
        padding: 0.5rem;
    }
    
    .login-form-container {
        padding: 1.25rem;
        border-radius: 14px;
    }
    
    .form-control {
        padding: 0.875rem 0.875rem 0.875rem 2.75rem;
        min-height: 45px;
    }
    
    .input-with-icon i {
        left: 0.875rem;
    }
    
    .password-toggle {
        right: 0.875rem;
    }
    
    .login-button {
        min-height: 45px;
        padding: 0.875rem;
    }
    
    .hero-image {
        height: 100px;
        margin: 1rem 0;
    }
    
    .logo {
        margin-bottom: 1.5rem;
    }
    
    .logo-text {
        font-size: 1.5rem;
    }
    
    .welcome-text h1 {
        font-size: 1.8rem;
    }
    
    .welcome-text h2 {
        font-size: 1.3rem;
    }
    
    .description p {
        font-size: 0.9rem;
    }
}

/* Çok küçük mobil (iPhone SE gibi) */
@media (max-width: 320px) {
    .login-form-container {
        padding: 1rem;
    }
    
    .form-control {
        font-size: 0.9rem;
        padding: 0.75rem 0.75rem 0.75rem 2.5rem;
    }
    
    .input-with-icon i {
        font-size: 0.9rem;
        left: 0.75rem;
    }
    
    .login-button {
        font-size: 0.95rem;
        padding: 0.75rem;
    }
    
    .form-header h1 {
        font-size: 1.3rem;
    }
    
    .form-header p {
        font-size: 0.85rem;
    }
}

/* Yatay mod için */
@media (max-height: 600px) and (orientation: landscape) {
    .login-container {
        flex-direction: row;
        overflow-y: auto;
    }
    
    .login-left {
        min-height: 100vh;
        max-height: none;
        padding: 1.5rem;
    }
    
    .login-right {
        min-height: 100vh;
        padding: 1rem;
    }
    
    .hero-image {
        height: 100px;
        margin: 1rem 0;
    }
    
    .features {
        display: none;
    }
}

/* Touch optimizations */
@media (hover: none) and (pointer: coarse) {
    .login-button,
    .form-control,
    .password-toggle,
    .back-link,
    .forgot-link {
        min-height: 44px;
    }
    
    .checkbox-container {
        min-height: 44px;
        align-items: center;
    }
    
    input, button, a {
        -webkit-tap-highlight-color: transparent;
    }
    
    .form-control,
    .login-button {
        font-size: 16px; /* iOS zoom engelleme */
    }
}

/* Scrollbar düzeltmesi - sadece dikey */
.login-right::-webkit-scrollbar {
    width: 4px;
}

.login-right::-webkit-scrollbar-track {
    background: rgba(241, 245, 249, 0.3);
}

.login-right::-webkit-scrollbar-thumb {
    background: rgba(203, 213, 225, 0.5);
    border-radius: 2px;
}

/* Print için */
@media print {
    .login-container {
        display: block;
        height: auto;
    }
    
    .login-left {
        display: none;
    }
    
    .login-right {
        background: white;
        padding: 0;
    }
    
    .login-form-container {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}


/* Sol alt logo ekleme */
.login-left {
    position: relative;
}

.bottom-logo {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    z-index: 3;
}

.bottom-logo-image {
    width: 140px;
    height: 140px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.bottom-logo-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .bottom-logo {
        bottom: 1.5rem;
        left: 1.5rem;
    }
    
    .bottom-logo-image {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 768px) {
    .bottom-logo {
        display: none; /* Mobilde gizle */
    }
}


.powered-by {
        display: flex;
        align-items: center;
        gap: 6px;

        font-size: 12px;
        font-family: Arial, Helvetica, sans-serif;
        font-weight: 800;

        padding: 6px 10px;

                background: rgb(11, 43, 73);

        border-radius: 8px;
        border: 1.4px solid rgba(173, 216, 230, 0.9);
        backdrop-filter: blur(10px);

        transition: all 0.25s ease;
        color: #cfeeff;
        text-decoration: none;

        opacity: 0.9;
        transform: scale(0.805);
        transform-origin: right center;

        position: fixed;
        right: 20px;
        bottom: 20px;
        z-index: 101;
        letter-spacing: 0.2px;
    }

    .powered-by-link:hover {
        background: rgba(255, 255, 255, 0.07);
        border-color: rgba(173, 216, 230, 1);
        transform: scale(0.82) translateY(-1px);
        box-shadow: 0 3px 8px rgba(173, 216, 230, 0.25);
        opacity: 1;
    }

    .powered-by-logo {
        width: 16px;
        height: 16px;
        object-fit: contain;
        filter: brightness(1.1);
    }
