﻿html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Poppins', sans-serif;
    -webkit-text-size-adjust: 100%; /* iOS zoom engelleme */
    -ms-text-size-adjust: 100%;
    overflow-x: hidden; /* Yatay scroll'u engelle */
}

/* Mobil için viewport ayarı - HTML'de meta tag olmalı */
/* <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"> */

.background-slideshow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

    .background-slideshow img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
        opacity: 0;
        animation: slideShow 24s infinite;
    }

        .background-slideshow img:nth-child(1) {
            animation-delay: 0s;
        }

        .background-slideshow img:nth-child(2) {
            animation-delay: 8s;
        }

        .background-slideshow img:nth-child(3) {
            animation-delay: 16s;
        }

    .background-slideshow::after {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.35); /* overlay kontrast */
        z-index: 1;
    }

/* Mobilde animasyonu basitleştir (performans için) */
@media (max-width: 768px) {
    .background-slideshow img {
        animation: slideShowMobile 24s infinite;
    }

    .background-slideshow::after {
        background: rgba(0,0,0,0.45); /* Mobilde daha koyu overlay */
    }
}

@keyframes slideShow {
    0% {
        opacity: 0;
        transform: scale(1);
    }

    10% {
        opacity: 1;
        transform: scale(1.05);
    }

    30% {
        opacity: 1;
        transform: scale(1.1);
    }

    40% {
        opacity: 0;
        transform: scale(1.15);
    }

    100% {
        opacity: 0;
        transform: scale(1);
    }
}

@keyframes slideShowMobile {
    0% {
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    30% {
        opacity: 1;
    }

    40% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

/* Login Box Responsive Ayarları */
.login-box {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 400px; /* Masaüstü için maksimum genişlik */
    margin: 0 auto;
    padding: 20px;
    display: flex;
    align-items: center;
    min-height: 100vh; /* Tam ekran yüksekliği */
}

/* MOBİL ÖZEL AYARLAR - 768px ve altı */
@media (max-width: 768px) {
    .login-box {
        max-width: 90%; /* Ekranın %90'ı kadar geniş */
        padding: 15px;
        min-height: 100vh;        
        padding-top: 20px;
    }
}

/* ÇOK KÜÇÜK MOBİL EKRANLAR - 480px ve altı */
@media (max-width: 480px) {
    .login-box {
        max-width: 95%; /* Daha da geniş */
        padding: 10px;
        padding-top: 10px;
    }
}

/* YATAY (LANDSCAPE) MOD */
@media (max-height: 600px) and (orientation: landscape) {
    .login-box {
        min-height: auto;
        padding-top: 5px;
        padding-bottom: 5px;        
    }
}

.card.login-glass {
    background: rgba(255,255,255,0.25);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    border: 1px solid rgba(255,255,255,0.25);
    animation: fadeInUp 0.8s ease;
    width: 100%;
}

/* Mobilde daha opak ve az blur */
@media (max-width: 768px) {
    .card.login-glass {
        background: rgba(255,255,255,0.25); /* Daha opak */
        backdrop-filter: blur(4px); /* Performans için az blur */
        border: 1px solid rgba(255,255,255,0.3);
        box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    }
}

.solid-header {
    position: relative; /* logo için referans */
    background: linear-gradient(90deg, rgb(35,162,183), rgb(8,74,83));
    color: #fff;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    overflow: hidden; /* taşan logoyu kesmek için */
    padding: 25px 20px;
}

/* Mobilde header düzeni */
@media (max-width: 768px) {
    .solid-header {
        padding: 20px 15px;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .solid-header {
        padding: 15px 10px;
    }
}

.brand-title {
    position: relative; /* logo arkasında kalacak */
    font-size: 32px;
    font-weight: 700;
    text-shadow: 0 2px 6px rgba(0,0,0,0.3);
    margin: 0;
    color: #f39c12;
    font-style: italic;
    padding: 0;
}

/* Mobilde başlık boyutu */
@media (max-width: 768px) {
    .brand-title {
        font-size: 28px;
        line-height: 1.2;
        margin-bottom: 5px;
    }
}

@media (max-width: 480px) {
    .brand-title {
        font-size: 24px;
    }
}

.brand-header {
    display: flex;
    align-items: center;
    justify-content: center; /* ortalar */
    gap: 10px; /* logo ile yazı arası boşluk */
}

.brand-logo {
    height: 40px; /* logonun boyutu */
    width: auto;
}

.brand-subtitle {
    position: relative; /* logo arkasında kalacak */
    font-size: 14px;
    color: #3f2600;
    margin: 0;
}

/* Mobilde alt başlık */
@media (max-width: 768px) {
    .brand-subtitle {
        font-size: 13px;
        color: #fff; /* Okunabilirlik için beyaz */
        text-shadow: 0 1px 3px rgba(0,0,0,0.3);
        line-height: 1.4;
    }
}

@media (max-width: 480px) {
    .brand-subtitle {
        font-size: 12px;
    }
}

.brand-logo-bg {
    position: absolute;
    left: 10px; /* kutunun soluna hizalama */
    top: 50%;
    transform: translateY(-50%); /* dikey ortalama */
    height: 70px; /* boyutu büyüt */
    width: auto;
    opacity: 0.25; /* filigran efekti */
    mix-blend-mode: inherit; /* siyah kenarlıkları yok et, arka plana entegre et */
    pointer-events: none; /* tıklanabilir olmasın */
}

/* Mobilde logo */
@media (max-width: 768px) {
    .brand-logo-bg {
        height: 60px;
        left: 35px;
        transform: translate(-50%, -50%); /* Tam ortala */
        opacity: 0.2;
    }
}

.btn-gradient {
    background: linear-gradient(90deg, #2099ac, #1f5387);
    color: #fff;
    border: none;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    padding: 12px;
    font-size: 16px;
    height: auto;
    min-height: 45px; /* Mobilde dokunmatik için yeterli yükseklik */
}

    .btn-gradient::after {
        content: "";
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: rgba(255,255,255,0.2);
        transition: left 0.4s;
    }

    .btn-gradient:hover::after {
        left: 100%;
    }

/* Mobilde buton */
@media (max-width: 768px) {
    .btn-gradient {
        min-height: 50px; /* Daha büyük dokunma alanı */
        font-size: 17px;
        padding: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }

        /* Mobilde tıklama efekti */
        .btn-gradient:active {
            transform: scale(0.98);
        }
}

@media (max-width: 480px) {
    .btn-gradient {
        min-height: 55px;
        font-size: 18px;
    }
}

.toggle-password {
    cursor: pointer;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.forgot-link {
    font-size: 14px;
    color: #f39c12;
    text-decoration: none;
    transition: color 0.3s ease;
}

    .forgot-link:hover {
        color: #fff;
        text-decoration: underline;
    }

.form-check-label {
    font-size: 14px;
    color: #fff;
}

/* Mobilde form etiketleri */
@media (max-width: 768px) {
    .form-check-label {
        color: #333; /* Daha koyu - okunabilirlik için */
        font-size: 15px;
    }

    .forgot-link {
        font-size: 15px;
    }
}

/* Input alanları için mobil ayarları */
.input-group .form-control {
    height: 45px;
    font-size: 16px; /* iOS auto-zoom engellemek için */
    padding: 10px 15px;
}

@media (max-width: 768px) {
    .input-group .form-control {
        height: 50px; /* Daha yüksek - dokunmatik için */
        font-size: 16px; /* iOS zoom engelleme */
    }

    .input-group-append .input-group-text {
        height: 50px;
    }
}

/* Beni Hatırla ve Şifremi Unuttum için mobil düzeni */
.d-flex.justify-content-between {  
    gap: 10px;
}

@media (min-width: 576px) {
    .d-flex.justify-content-between {
        flex-direction: row;
        align-items: center;
    }
}

/* Card body için mobil padding */
.card-body {
    padding: 25px;
}

@media (max-width: 768px) {
    .card-body {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .card-body {
        padding: 15px;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* iOS Input Düzeltmesi - Auto-zoom'u engelle */
@media (max-width: 767px) {
    input.form-control,
    select.form-control,
    textarea.form-control {
        font-size: 16px !important;
    }
}

/* Çok küçük ekranlar için ek düzenlemeler */
@media (max-width: 360px) {
    .login-box {
        max-width: 100%;
        padding: 5px;
    }

    .card.login-glass {
        border-radius: 12px;
    }

    .solid-header {
        border-radius: 12px 12px 0 0;
    }

    .brand-title {
        font-size: 22px;
    }

    .brand-subtitle {
        font-size: 11px;
    }
}
