/*
 * ============================================================================
 * AUTH PAGES RESPONSIVE STYLES
 * ============================================================================
 * 
 * Login, ForgotPassword, SignUp ve tüm authentication sayfaları için
 * notebook ve küçük ekran uyumluluğu.
 * 
 * Kullanım: <link href="~/assets/css/auth-responsive.css" rel="stylesheet" />
 * 
 * Tarih: 26 Ekim 2025
 * ============================================================================
 */

/* ==========================================================================
   1. NOTEBOOK EKRANLAR (1920x1080, 1600x900) - Yükseklik: 900px altı
   ========================================================================== */

@media (max-height: 900px) {
    .auth-page-wrapper {
        padding-top: 1.5rem !important;
        padding-bottom: 1rem !important;
    }
    
    .auth-page-content .text-center.mt-sm-5 {
        margin-top: 1rem !important;
        margin-bottom: 1rem !important;
    }
    
    .auth-page-content .card {
        margin-top: 0.5rem !important;
    }
    
    .auth-page-content .card-body {
        padding: 2rem !important;
    }
    
    .auth-page-content .form-floating {
        margin-bottom: 0.75rem !important;
    }
    
    .auth-page-content .mb-3 {
        margin-bottom: 0.75rem !important;
    }
    
    .auth-page-content .mt-4 {
        margin-top: 1rem !important;
    }
    
    .auth-page-content .mt-2 {
        margin-top: 0.5rem !important;
    }
    
    .auth-page-content .p-2 {
        padding: 0.5rem !important;
    }
    
    .auth-page-content .footer {
        padding: 0.75rem 0 !important;
    }
    
    /* Lord-icon boyutu (Forgot Password sayfası için) */
    .auth-page-content lord-icon {
        width: 80px !important;
        height: 80px !important;
    }
    
    /* Şifre validasyon kutusu (SignUp sayfası için) */
    #password-contain {
        padding: 0.75rem !important;
        margin-bottom: 0.5rem !important;
    }
}

/* ==========================================================================
   2. KÜÇÜK NOTEBOOK EKRANLAR (1366x768, 1280x720) - Yükseklik: 768px altı
   ========================================================================== */

@media (max-height: 768px) {
    .auth-page-wrapper {
        padding-top: 0.5rem !important;
        padding-bottom: 0.5rem !important;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
    }
    
    .auth-page-content {
        flex: 1;
        display: flex;
        align-items: center;
        padding: 0.5rem 0;
    }
    
    .auth-page-content .container {
        width: 100%;
    }
    
    .auth-page-content .text-center.mt-sm-5 {
        margin-top: 0.5rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .auth-page-content .card {
        margin-top: 0 !important;
    }
    
    .auth-page-content .card-body {
        padding: 1.5rem !important;
    }
    
    .auth-page-content .form-floating {
        margin-bottom: 0.5rem !important;
    }
    
    .auth-page-content .mb-3 {
        margin-bottom: 0.5rem !important;
    }
    
    .auth-page-content .mb-2 {
        margin-bottom: 0.35rem !important;
    }
    
    .auth-page-content .mb-4 {
        margin-bottom: 0.75rem !important;
    }
    
    .auth-page-content .mt-2,
    .auth-page-content .mt-4 {
        margin-top: 0.5rem !important;
    }
    
    .auth-page-content .p-2 {
        padding: 0.25rem !important;
    }
    
    /* Başlık boyutları */
    .auth-page-content .mt-sm-5.mb-4 h3 {
        font-size: 1.5rem !important;
    }
    
    /* Footer */
    .auth-page-wrapper .footer {
        padding: 0.5rem 0 !important;
        margin-top: auto;
    }
    
    .auth-page-wrapper .footer p {
        font-size: 0.8rem;
        margin: 0;
    }
    
    /* Lord-icon boyutu */
    .auth-page-content lord-icon {
        width: 60px !important;
        height: 60px !important;
    }
    
    /* Şifre validasyon kutusu (SignUp sayfası) */
    #password-contain {
        padding: 0.5rem !important;
        margin-bottom: 0.35rem !important;
    }
    
    #password-contain h5 {
        font-size: 0.85rem !important;
        margin-bottom: 0.35rem !important;
    }
    
    #password-contain p {
        margin-bottom: 0.25rem !important;
        font-size: 0.75rem !important;
    }
    
    /* Form check labels (SignUp sayfası) */
    .auth-page-content .form-check-label small {
        font-size: 0.7rem !important;
    }
}

/* ==========================================================================
   3. GENİŞ EKRANLAR - Genişlik: 1400px altı
   ========================================================================== */

@media (max-width: 1400px) {
    .auth-page-content .container {
        max-width: 95%;
    }
}

/* ==========================================================================
   4. TABLET EKRANLAR - Genişlik: 991px altı
   ========================================================================== */

@media (max-width: 991px) {
    .auth-page-wrapper {
        padding-top: 2rem !important;
    }
    
    .auth-page-content .col-md-8 {
        max-width: 100%;
        padding: 0 1rem;
    }
}

/* ==========================================================================
   5. MOBİL EKRANLAR - Genişlik: 576px altı
   ========================================================================== */

@media (max-width: 576px) {
    .auth-page-wrapper {
        padding-top: 1rem !important;
    }
    
    .auth-page-content .card-body {
        padding: 1.5rem !important;
    }
    
    /* Lord-icon mobil boyutu */
    .auth-page-content lord-icon {
        width: 60px !important;
        height: 60px !important;
    }
    
    /* Form check inline'ları dikey yap (SignUp sayfası) */
    .auth-page-content .form-check-inline {
        display: block !important;
        margin-bottom: 0.5rem;
    }
}

/* ==========================================================================
   6. ŞİFRE TOGGLE BUTONU - Tüm auth sayfaları için
   ========================================================================== */

.password-toggle-btn {
    position: absolute;
    right: 0;
    top: 0;
    border: none;
    background: transparent;
    padding: 0.375rem 0.75rem;
    height: 100%;
    z-index: 10;
    cursor: pointer;
    color: #6c757d;
}

.password-toggle-btn:hover {
    color: #0ab39c;
}

.password-toggle-btn:focus {
    outline: none;
    box-shadow: none;
}

/* Floating label ile şifre alanı için */
.form-floating.position-relative .auth-pass-inputgroup {
    position: relative;
}

.form-floating.position-relative .auth-pass-inputgroup label {
    padding-right: 2.5rem;
    z-index: 5;
}

.form-floating.position-relative .password-toggle-btn {
    z-index: 15;
}

/* Floating label içindeki şifre alanı için input padding */
.form-floating.position-relative input[type="password"],
.form-floating.position-relative input[type="text"] {
    padding-right: 2.5rem !important;
}

/* Yeni şifre addon butonu stili */
.auth-pass-inputgroup .password-addon {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    padding: 0.75rem;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    background: transparent;
}

.auth-pass-inputgroup .password-addon:hover {
    color: #0ab39c !important;
}

.auth-pass-inputgroup .password-addon:focus {
    outline: none;
    box-shadow: none;
}

/* Form-floating içindeki şifre input'u için padding */
.form-floating.auth-pass-inputgroup .password-input {
    padding-right: 2.5rem !important;
}

/* ==========================================================================
   7. ŞİFRE VALİDASYON KUTULARI - SignUp sayfası için
   ========================================================================== */

#password-contain p.valid {
    color: #0ab39c !important;
}

#password-contain p.valid::before {
    content: '✓ ';
    font-weight: bold;
}

#password-contain p.invalid {
    color: #f06548 !important;
}

#password-contain p.invalid::before {
    content: '✗ ';
    font-weight: bold;
}

/* ==========================================================================
   END OF AUTH RESPONSIVE STYLES
   ========================================================================== */


