/* ==========================================================================
   Baro Dijital – giriş ekranları (giris.aspx, yenisifre.aspx)
   Ana renk sayfada BaroAyar.TemaStili() ile basılır: --baro-accent, --baro-accent-rgb.
   ========================================================================== */

:root {
    --baro-accent: #0F5C4D;
    --baro-accent-rgb: 15, 92, 77;
    --baro-metin: #0F172A;
    --baro-metin-2: #334155;
    --baro-soluk: #475569;
    --baro-cizgi: #E2E8F0;
    --baro-alan-cizgi: #CBD5E1;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    min-height: 100%;
}

body {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    color: var(--baro-metin);
    background: #FFFFFF;
}

.giris-sayfa {
    min-height: 100vh;
    display: flex;
    flex-wrap: wrap;
}

/* ---------- Form tarafı ---------- */

.giris-form-taraf {
    flex: 1 1 460px;
    min-width: 0;
    padding: 48px 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.giris-kutu {
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.giris-baro {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* Logo kendi oranında: kare/yuvarlak logolar 140px'e, yatay logolar 320px genişliğe kadar.
   Baro ayarındaki "Giriş Logosu Genişliği" max-width olarak basılır (giris.GirisLogo). */
.giris-baro img {
    display: block;
    width: auto;
    height: auto;
    max-width: min(100%, 320px);
    max-height: 140px;
    object-fit: contain;
}

.giris-baslik h1 {
    margin: 0 0 8px;
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.giris-baslik p {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
    color: var(--baro-soluk);
}

.giris-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.giris-alan {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.giris-alan-ust {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.giris-alan label {
    font-size: 14px;
    font-weight: 600;
}

.giris-alan input,
.giris-alan select {
    width: 100%;
    height: 48px;
    border: 1px solid var(--baro-alan-cizgi);
    border-radius: 12px;
    padding: 0 14px;
    font: inherit;
    font-size: 15px;
    color: var(--baro-metin);
    background: #FFFFFF;
}

.giris-alan input:focus,
.giris-alan select:focus {
    outline: none;
    border-color: var(--baro-accent);
    box-shadow: 0 0 0 3px rgba(var(--baro-accent-rgb), 0.18);
}

.giris-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--baro-accent);
    text-decoration: none;
}

.giris-link:hover {
    text-decoration: underline;
}

.giris-buton {
    height: 50px;
    border: 0;
    border-radius: 12px;
    background: var(--baro-accent);
    color: #FFFFFF;
    font: inherit;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.giris-buton:hover {
    filter: brightness(0.92);
}

.giris-buton:focus-visible {
    outline: 3px solid rgba(var(--baro-accent-rgb), 0.35);
    outline-offset: 2px;
}

.giris-mesaj:empty {
    display: none;
}

.giris-mesaj {
    margin: 0;
    padding: 12px 14px;
    border-radius: 12px;
    background: #FEF2F2;
    color: #B91C1C;
    font-size: 14px;
    font-weight: 600;
}

.giris-mesaj.basarili {
    background: #F0FDF4;
    color: #15803D;
}

.giris-alt {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid var(--baro-cizgi);
    font-size: 14px;
    color: var(--baro-soluk);
}

.giris-magazalar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.giris-magazalar a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 12px;
    background: var(--baro-metin);
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.giris-magazalar a:hover {
    background: #1E293B;
}

/* ---------- Görsel tarafı (girisgorsel.ascx) ---------- */

.giris-gorsel-taraf {
    flex: 1 1 460px;
    min-width: 0;
    min-height: 420px;
    padding: 20px;
    display: flex;
}

.giris-gorsel {
    position: relative;
    flex: 1 1 auto;
    border-radius: 24px;
    overflow: hidden;
    background: var(--baro-accent);
}

.giris-gorsel .swiper {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.giris-gorsel .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.giris-gorsel .swiper-pagination-bullet {
    background: #FFFFFF;
    opacity: 0.6;
}

.giris-gorsel .swiper-pagination-bullet-active {
    opacity: 1;
    width: 24px;
    border-radius: 999px;
}

.giris-gorsel-bos {
    position: absolute;
    inset: 0;
    padding: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    color: #FFFFFF;
    text-align: center;
}

.giris-gorsel-bos img {
    max-width: 220px;
    max-height: 220px;
    object-fit: contain;
    background: #FFFFFF;
    border-radius: 24px;
    padding: 16px;
}

.giris-gorsel-bos h2 {
    margin: 0;
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

/* Telefon: görsel alta, kısa */
@media (max-width: 960px) {
    .giris-gorsel-taraf {
        min-height: 260px;
        order: 2;
    }

    .giris-form-taraf {
        padding: 32px 20px;
    }
}
