/*
 * Giris ekrani (Views/Home/Index.cshtml). Tema (Hyper) yuklenmez; sayfa kendi basina.
 * Solda koyu marka alani, sagda form; 900 px altinda marka alani uste iner.
 */

@font-face { font-family: Nunito; font-weight: 400; src: url(../userstyle/assets/fonts/Nunito-Regular.woff) format("woff"); }
@font-face { font-family: Nunito; font-weight: 600; src: url(../userstyle/assets/fonts/Nunito-SemiBold.woff) format("woff"); }
@font-face { font-family: Nunito; font-weight: 700 800; src: url(../userstyle/assets/fonts/Nunito-Bold.woff) format("woff"); }

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; font-family: Nunito, system-ui, -apple-system, "Segoe UI", sans-serif; color: #1c2330; background: #ffffff; }

.kg { display: flex; min-height: 100vh; }

/* ---------- Marka alani ---------- */
.kg-marka {
    width: 42%; max-width: 600px; flex-shrink: 0; position: relative; overflow: hidden;
    background: #15233a; padding: 56px 64px;
    display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
}
.kg-desen { position: absolute; right: -250px; bottom: -210px; pointer-events: none; }
.kg-logo { height: 76px; width: auto; align-self: flex-start; position: relative; }
.kg-tanitim { display: flex; flex-direction: column; gap: 28px; position: relative; }
.kg-tanitim h2 { margin: 0; font-size: 34px; line-height: 1.2; font-weight: 800; color: #ffffff; letter-spacing: -0.4px; max-width: 420px; }
.kg-tanitim p { margin: 12px 0 0; font-size: 16px; line-height: 1.55; color: #aab6c8; max-width: 400px; }
.kg-ozellikler { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; }
.kg-ozellikler li { display: flex; align-items: center; gap: 14px; font-size: 15px; font-weight: 600; color: #e3e9f2; }
.kg-ozellikler span {
    width: 36px; height: 36px; flex-shrink: 0; border-radius: 10px; background: #1e2f4a; color: #9dbbe6;
    display: flex; align-items: center; justify-content: center;
}
.kg-telif { font-size: 13px; color: #8e9bb0; position: relative; }

/* ---------- Form ---------- */
.kg-form-alani { flex-grow: 1; display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.kg-form { width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: 22px; }
.kg-form h1 { margin: 0; font-size: 28px; font-weight: 800; letter-spacing: -0.3px; }
.kg-form .alt { margin: 6px 0 0; font-size: 15px; color: #5b6576; }

.kg-hata {
    display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 10px;
    background: #fbeae2; color: #8a3413; font-size: 14px; font-weight: 600;
}
.kg-hata svg { flex-shrink: 0; margin-top: 1px; }

.kg-alan { display: flex; flex-direction: column; gap: 8px; }
.kg-alan label, .kg-dil legend { font-size: 14px; font-weight: 700; color: #3b4556; }
.kg-girdi {
    height: 48px; width: 100%; border: 1px solid #d5dae2; border-radius: 10px; padding: 0 14px;
    font: inherit; font-size: 15px; color: #1c2330; background: #ffffff;
}
.kg-girdi:focus, .kg-sifre:focus-within { outline: none; border-color: #1d4f91; box-shadow: 0 0 0 3px rgba(29, 79, 145, .15); }
.kg-hatali .kg-girdi, .kg-hatali .kg-sifre { border-color: #b4532a; }

.kg-sifre {
    display: flex; align-items: center; height: 48px; border: 1px solid #d5dae2; border-radius: 10px;
    padding: 0 4px 0 14px; background: #ffffff;
}
.kg-sifre input { flex-grow: 1; min-width: 0; height: 100%; border: none; outline: none; font: inherit; font-size: 15px; color: #1c2330; background: transparent; }
.kg-goster {
    width: 40px; height: 40px; border: none; border-radius: 8px; background: transparent; color: #5b6576;
    display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.kg-goster:hover { background: #f3f4f6; }
.kg-goster:focus-visible { outline: 2px solid #1d4f91; outline-offset: 1px; }
.kg-goster .gizle { display: none; }
.kg-goster[aria-pressed="true"] .goster { display: none; }
.kg-goster[aria-pressed="true"] .gizle { display: inline; }

.kg-dil { margin: 0; padding: 0; border: none; min-width: 0; }
.kg-dil legend { padding: 0; margin-bottom: 8px; }
.kg-dil-secenek { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 4px; background: #f3f4f6; border-radius: 10px; }
.kg-dil-secenek label {
    height: 40px; border-radius: 8px; border: 1px solid transparent; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    font-size: 14px; font-weight: 600; color: #3b4556;
}
.kg-dil-secenek input { accent-color: #1d4f91; margin: 0; }
.kg-dil-secenek label:has(input:checked) { background: #ffffff; border-color: #d5dae2; color: #1d4f91; font-weight: 700; }
.kg-dil-secenek label:has(input:focus-visible) { outline: 2px solid #1d4f91; outline-offset: 1px; }

.kg-gonder {
    height: 50px; border: none; border-radius: 10px; background: #1d4f91; color: #ffffff; cursor: pointer;
    font: inherit; font-size: 16px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 10px;
}
.kg-gonder:hover { background: #163f75; }
.kg-gonder:focus-visible { outline: 3px solid rgba(29, 79, 145, .35); outline-offset: 2px; }
.kg-gonder:disabled { opacity: .75; cursor: progress; }

.kg-not { margin: 0; font-size: 13px; color: #6b7586; text-align: center; }

/* ---------- Dar ekran: marka alani uste, kisa ---------- */
@media (max-width: 900px) {
    .kg { flex-direction: column; }
    .kg-marka { width: 100%; max-width: none; padding: 32px 24px 26px; gap: 12px; }
    .kg-logo { height: 54px; }
    .kg-tanitim h2 { font-size: 16px; font-weight: 600; color: #aab6c8; letter-spacing: 0; }
    .kg-tanitim p, .kg-ozellikler, .kg-telif, .kg-desen { display: none; }
    .kg-form-alani { align-items: flex-start; padding: 28px 24px; }
    .kg-girdi, .kg-sifre input { font-size: 16px; } /* iOS yakinlastirmasin */
}
