/* GENEL RESET */
html, body {
    height: 100%;
    width: 100%;
    overflow-x: hidden;
}

/* ========== SPLIT LAYOUT: Sol Form / Sağ Fotoğraf ========== */
body.login-page.auth-split-page {
    min-height: 100vh;
    height: 100vh;
    display: flex;
    flex-direction: row;
    margin: 0;
    background: #f4f6f9;
    overflow: hidden;
}

/* AdminLTE login dekorasyonlarını kapat (mavi/kırmızı şekiller) */
body.login-page.auth-split-page .content-wrapper,
body.login-page.auth-split-page .login-box::before,
body.login-page.auth-split-page .login-box::after,
body.login-page.auth-split-page .login-page-body::before,
body.login-page.auth-split-page .login-page-body::after {
    display: none !important;
}

/* Sol panel: beyaz, dar (~40%) — referans tasarım */
.auth-split-form {
    flex: 0 0 40%;
    max-width: 40%;
    min-height: 100vh;
    overflow-y: auto;
    padding: 40px 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    position: relative;
    z-index: 2;
}

.auth-split-form-inner {
    width: 100%;
    max-width: 380px;
    animation: fadeSlideIn .6s ease-out;
    text-align: left;
}

.auth-split-form-inner.auth-form-wide {
    max-width: 420px;
}

/* Sağ panel: fotoğraf gerekli alana sığdırılmış */
.auth-split-image {
    flex: 1;
    min-width: 0;
    min-height: 0;
    height: 100%;
    width: 100%;
    position: relative;
    z-index: 1;
    overflow: hidden;
    background-image: url('/login walpaper.png');
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;
    background-color: #dcdcfc;
}

.auth-split-image::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
}

/* Sağ panel altı logolar (referans: marka logoları sağ alt) */
.auth-side-logos {
    position: absolute;
    bottom: 10px;
    right: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 2;
}

.auth-side-logos img {
    max-height: 32px;
    max-width: 48px;
    width: auto;
    height: auto;
    object-fit: contain;
    opacity: 0.95;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
}

/* Telefon modu: fotoğraf gizli, form tam ortada */
@media (max-width: 991px) {
    body.login-page.auth-split-page {
        flex-direction: column;
        min-height: 100vh;
    }

    .auth-split-form {
        flex: 1;
        max-width: 100%;
        min-height: 100vh;
        padding: 24px 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow-y: auto;
    }

    .auth-split-form-inner {
        width: 100%;
        max-width: 380px;
        margin: 0 auto;
    }

    .auth-split-form-inner.auth-form-wide {
        max-width: 420px;
    }

    /* Sağ panel (fotoğraf) telefon modunda gizle */
    .auth-split-image {
        display: none !important;
    }
}

/* Eski full-page arka plan (split kullanılmıyorsa) */
body.login-page:not(.auth-split-page) {
    min-height: 100vh;
    background: linear-gradient(rgba(0,0,0,.45), rgba(0,0,0,.45)), url('/admin/zemin.jpg') center/cover no-repeat fixed;
}

@media (max-width: 768px) {
    body.login-page:not(.auth-split-page) {
        background: #f4f6f9;
    }
}

/* LOGIN BOX */
.login-box {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    padding: 15px 0;
    animation: fadeSlideIn .6s ease-out;
}

.auth-split-page .login-box,
.auth-split-page .register-box {
    max-width: 100%;
    margin: 0;
}

/* CARD — referans: düz panel, hafif gölge */
.login-card {
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    border: none;
    overflow: visible;
}

/* Logo satırı: solda logo + firma adı (referans UMA tarzı) */
.auth-logo-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
}

.auth-logo-row img {
    max-width: 250px;
    max-height: 250px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.auth-logo-row .auth-brand-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

/* Başlık: Portal Giriş tarzı */
.login-header {
    text-align: left;
    padding: 0 0 24px 0;
    border-bottom: none;
}

.login-header .auth-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 8px 0;
}

.login-header .auth-subtitle {
    font-size: 0.9rem;
    color: #6c757d;
    margin: 0;
}

/* Eski merkez logo (geri uyumluluk) */
.login-header img:not(.auth-logo-row img) {
    max-width: 160px;
    max-height: 56px;
    margin-bottom: 12px;
}

.login-header h4 { font-weight: 600; margin-bottom: 5px; font-size: 1.25rem; }
.login-header p { font-size: 14px; color: #6c757d; }

/* BODY */
.login-card-body {
    padding: 0;
/*    padding-top: 24px;*/
}

/* Form etiketleri (referansta "Kullanıcı Adınız :" üstte) */
.auth-form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: #495057;
    margin-bottom: 8px;
}

/* Input: ikon solda (referans) */
.auth-split-form .input-group {
    flex-wrap: nowrap;
}

.auth-split-form .input-group .input-group-text {
    border: 1px solid #dee2e6;
    border-right: none;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
    background: #e9ecef;
    color: #495057;
}

.auth-split-form .input-group .form-control {
    border: 1px solid #dee2e6;
    border-left: none;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
    background: #f8f9fa;
}

.auth-split-form .input-group:focus-within .input-group-text,
.auth-split-form .input-group:focus-within .form-control {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

.auth-split-form .input-group .form-control:focus {
    background: #fff;
    outline: none;
}

/* Şifre alanında ikon sağda (göster/gizle) */
.auth-split-form .input-group-password .input-group-text {
    order: 2;
    border-radius: 0 10px 10px 0;
    border: 1px solid #dee2e6;
    border-left: none;
}

.auth-split-form .input-group-password .form-control {
    order: 1;
    border-radius: 10px 0 0 10px;
    border: 1px solid #dee2e6;
    border-right: none;
}

/* INPUTS */
.form-control {
    height: 48px;
    border-radius: 12px;
}

    .form-control:focus {
        box-shadow: 0 0 0 .15rem rgba(13,110,253,.25);
    }

.input-group-text {
    border-radius: 12px;
    background: #f1f3f5;
    cursor: pointer;
    min-width: 46px;
    width: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

/* İkonlar sabit boyut — büyüyüp bozulmasın */
.auth-split-form .input-group-text .bi,
.login-card-body .input-group-text .bi {
    font-size: 1.125rem;
    line-height: 1;
}

/* BUTTON — referans: koyu mavi, ikon solda */
.btn-login {
    height: 48px;
    border-radius: 10px;
    font-weight: 600;
    background: #0d6efd;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-login:hover {
    background: #084298;
    color: #fff;
}

.auth-forgot-link {
    display: block;
    text-align: center;
    margin-top: 16px;
    font-size: 0.9rem;
    color: #0d6efd;
    text-decoration: none;
}

.auth-forgot-link:hover {
    color: #084298;
    text-decoration: underline;
}

/* CAPS LOCK */
.caps-warning {
    display: none;
    font-size: 13px;
    color: #dc3545;
    margin: 6px 0 10px;
}

/* ANIMATIONS */
@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* SHAKE — MOBILE SAFE (translateX küçük tutuldu) */
.shake {
    animation: shake .35s;
}

@keyframes shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    50% { transform: translateX(4px); }
    75% { transform: translateX(-4px); }
    100% { transform: translateX(0); }
}

/* Kart altı logolar (Visa, Mastercard, SSL) — sabit, orantılı */
.card-logos {
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
}

.card-logos img {
    display: block;
    max-height: 36px;
    max-width: 52px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Footer mini logo */
.register-footer img.mini-icon,
.footer.register-footer img {
    max-width: 36px;
    max-height: 36px;
    width: auto;
    height: auto;
    object-fit: contain;
    vertical-align: middle;
}
