/* ============================================================
   Kurumsal Giriş (Login) Tasarımı — MaxHesapApp
   Split-screen: sol marka paneli + sağ form · lacivert (#2563eb).
   Yalnızca index.php'ye dahil edilir.
   ============================================================ */

.login-page {
    margin: 0;
    background: #f1f5f9;
}

.auth-wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
    font-family: "Segoe UI", Roboto, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

/* --- Sol marka paneli --- */
.auth-brand {
    position: relative;
    flex: 1 1 52%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 56px 60px;
    color: #ffffff;
    overflow: hidden;
    background:
        radial-gradient(circle at 18% 22%, rgba(59, 130, 246, 0.45), transparent 55%),
        linear-gradient(135deg, #0f172a 0%, #1e3a8a 55%, #2563eb 100%);
}

.auth-brand::before,
.auth-brand::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
}

.auth-brand::before {
    width: 360px;
    height: 360px;
    right: -130px;
    top: -90px;
}

.auth-brand::after {
    width: 230px;
    height: 230px;
    left: -80px;
    bottom: -70px;
    background: rgba(255, 255, 255, 0.05);
}

.auth-brand__inner {
    position: relative;
    z-index: 1;
    margin: auto 0;
    max-width: 440px;
}

.auth-brand__logo-wrap {
    display: inline-flex;
    background: #ffffff;
    padding: 14px 20px;
    border-radius: 16px;
    margin-bottom: 30px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.20);
}

.auth-brand__logo-wrap img {
    height: 46px;
    display: block;
}

.auth-brand__title {
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin: 0 0 12px;
    line-height: 1.15;
}

.auth-brand__subtitle {
    font-size: 16px;
    opacity: 0.85;
    margin: 0 0 32px;
    line-height: 1.5;
}

.auth-brand__features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.auth-brand__features li {
    position: relative;
    padding: 9px 0 9px 34px;
    font-size: 14.5px;
    opacity: 0.92;
}

.auth-brand__features li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    top: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 21px;
    height: 21px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    font-size: 11px;
    font-weight: 700;
}

.auth-brand__footer {
    position: relative;
    z-index: 1;
    font-size: 13px;
    opacity: 0.7;
}

/* --- Sağ form paneli --- */
.auth-form {
    flex: 1 1 48%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    background: #ffffff;
}

.auth-form__inner {
    width: 100%;
    max-width: 400px;
}

.auth-form__logo-mobile {
    display: none;
    text-align: center;
    margin-bottom: 24px;
}

.auth-form__logo-mobile img {
    height: 58px;
}

.auth-form__title {
    font-size: 27px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 6px;
}

.auth-form__desc {
    font-size: 14.5px;
    color: #64748b;
    margin: 0 0 34px;
}

/* --- Alanlar --- */
.field {
    margin-bottom: 20px;
}

.field > label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 8px;
}

.field__control {
    position: relative;
    display: flex;
    align-items: center;
}

.field__icon {
    position: absolute;
    left: 15px;
    color: #94a3b8;
    font-size: 16px;
    pointer-events: none;
    display: flex;
}

.field__control input {
    width: 100%;
    height: 50px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 0 46px;
    font-size: 14px;
    color: #0f172a;
    background: #f8fafc;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.field__control input::placeholder {
    color: #a5b0c0;
}

.field__control input:focus {
    outline: none;
    border-color: #2563eb;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.field__toggle {
    position: absolute;
    right: 8px;
    border: 0;
    background: transparent;
    cursor: pointer;
    color: #94a3b8;
    padding: 8px;
    border-radius: 8px;
    font-size: 16px;
    display: flex;
    transition: color .18s ease;
}

.field__toggle:hover {
    color: #2563eb;
}

/* --- Hata uyarısı --- */
.auth-alert {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
    padding: 11px 14px;
    border-radius: 10px;
    font-size: 13px;
    margin-bottom: 20px;
}

/* --- Giriş butonu --- */
.auth-btn {
    width: 100%;
    height: 50px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.2px;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.28);
    transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
}

.auth-btn:hover {
    filter: brightness(1.06);
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.38);
    transform: translateY(-1px);
}

.auth-btn:active {
    transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .auth-brand {
        display: none;
    }

    .auth-form {
        flex: 1 1 100%;
    }

    .auth-form__logo-mobile {
        display: block;
    }
}

/* ============================================================
   MaxHesap metin logosu (görsel logolar kaldırıldı)
   İki renk: Max = mavi, Hesap = yeşil
   ============================================================ */
.mh-logo {
    font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
    font-weight: 800;
    font-size: 22px;
    letter-spacing: -0.03em;
    line-height: 1;
    white-space: nowrap;
    display: inline-flex;
    align-items: baseline;
    text-decoration: none;
}
.mh-logo .mh-max { color: #0a84ff; }
.mh-logo .mh-hesap { color: #34c759; }
.mh-logo--mini { font-size: 20px; }
.mh-logo--lg { font-size: 30px; }

/* ============================================================
   MaxHesap ozgun logo — gradyan rozet + M buyume isareti + kelime
   ============================================================ */
.mh-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    line-height: 1;
}
.mh-brand__mark {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border-radius: 11px;
    background: linear-gradient(135deg, #0a84ff, #34c759);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 14px rgba(10, 132, 255, 0.28);
}
.mh-brand__mark svg {
    width: 66%;
    height: 66%;
    display: block;
}
.mh-brand__word {
    font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
    font-weight: 800;
    font-size: 21px;
    letter-spacing: -0.03em;
    white-space: nowrap;
}
.mh-brand__word .mh-max { color: #0a84ff; }
.mh-brand__word .mh-hesap { color: #34c759; }
.mh-brand--lg { gap: 13px; }
.mh-brand--lg .mh-brand__mark { width: 46px; height: 46px; border-radius: 14px; }
.mh-brand--lg .mh-brand__word { font-size: 28px; }

/* ============================================================
   MaxHesap logo — SADE agirlik-kontrastli wordmark (nihai)
   Tek renk koyu antrasit, ikon/gradyan yok. max=kalin, hesap=ince
   ============================================================ */
.mh-brand {
    display: inline-flex;
    align-items: baseline;
    gap: 0;
    font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
    font-size: 23px;
    letter-spacing: -0.02em;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none;
    color: #0f172a;
    box-shadow: none;
}
.mh-brand__mark { display: none !important; }
.mh-brand .mh-max   { color: #0f172a; font-weight: 800; }
.mh-brand .mh-hesap { color: #0f172a; font-weight: 300; }
.mh-brand--lg   { font-size: 32px; }
.mh-brand--mini { font-size: 20px; }

/* ============================================================
   MaxHesap logo — "toplanan noktalar" isareti + wordmark (nihai)
   ============================================================ */
.mh-brand { align-items: center; gap: 10px; }
.mh-mark { display: inline-flex; flex-shrink: 0; width: 1.22em; height: 1.22em; color: #0f172a; }
.mh-mark svg { width: 100%; height: 100%; display: block; }
.mh-brand--mini .mh-mark { width: 1.35em; height: 1.35em; }
.mh-brand--lg .mh-mark { width: 1.15em; height: 1.15em; }

/* Renk: icon + "hesap" mavi, "max" koyu antrasit */
.mh-mark { color: #0a84ff; }
.mh-brand .mh-hesap { color: #0a84ff; }
.mh-brand .mh-max { color: #0f172a; }

/* Logo ince ayar: boşluk yarıya, ikon %20 büyük, dikey hizalama */
.mh-brand { gap: 5px; align-items: center; }
.mh-mark { width: 1.46em; height: 1.46em; position: relative; top: -0.06em; }
.mh-brand--lg .mh-mark { width: 1.38em; height: 1.38em; }
.mh-brand--mini .mh-mark { width: 1.62em; height: 1.62em; top: 0; }

/* Dikey hizalama düzeltmesi: ikon nötr, yazıyı hafif yukarı çek */
.mh-mark { top: 0; }
.mh-brand--mini .mh-mark { top: 0; }
.mh-word { position: relative; top: -0.045em; }
