/* Giriş sayfası — kurumsal çini teması */
:root {
    --zemin: #f9f5f0;
    --kart: #ffffff;
    --lacivert: #0b2f73;
    --lacivert-koyu: #082358;
    --cini: #1f4fd1;
    --yazi: #14213d;
    --soluk: #5b6680;
    --cok-soluk: #8a93a8;
    --cizgi: #d9dde7;
    --hata: #b42318;
    --hata-zemin: #fef3f2;
    --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
    --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overscroll-behavior: none; }
body {
    font-family: var(--sans);
    color: var(--yazi);
    background: var(--zemin);
    -webkit-font-smoothing: antialiased;
}

.giris {
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
}

/* —— Maskot paneli: çini baykuş ve modüller —— */
.giris-maskot {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 40px 5% 36px;
    background:
        radial-gradient(40% 36% at 50% 56%, #dce6fb 0, rgba(220, 230, 251, 0) 100%),
        radial-gradient(34% 28% at 12% 90%, #f5e4c6 0, rgba(245, 228, 198, 0) 100%),
        radial-gradient(30% 26% at 90% 8%, #e6edfb 0, rgba(230, 237, 251, 0) 100%),
        var(--zemin);
}
/* Panelin sağ kenarı form zeminine yumuşakça karışır */
.giris-maskot::after {
    content: "";
    position: absolute;
    inset: 0 -1px 0 auto;
    width: 10%;
    background: linear-gradient(90deg, rgba(249, 245, 240, 0), var(--zemin));
    pointer-events: none;
}

.maskot-ust { position: relative; z-index: 2; text-align: center; animation: giris-yuksel .8s cubic-bezier(.2, .7, .2, 1) both; }
.maskot-etiket {
    display: inline-block;
    margin-bottom: 14px;
    padding: 6px 14px;
    border: 1px solid #d6dff3;
    border-radius: 999px;
    background: rgba(255, 255, 255, .7);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    color: var(--lacivert);
}
.maskot-baslik {
    margin: 0;
    font-family: var(--serif);
    font-weight: 600;
    font-size: clamp(30px, 2.8vw, 44px);
    line-height: 1.05;
    color: var(--lacivert-koyu);
}
.maskot-baslik em { font-style: italic; color: var(--cini); white-space: nowrap; }

.maskot-sahne {
    position: relative;
    width: min(640px, 100%);
    aspect-ratio: 1 / .78;
    max-height: 62vh;
}
.maskot-halka {
    position: absolute;
    left: 50%;
    top: 52%;
    width: 64%;
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, .9) 0 46%, rgba(255, 255, 255, 0) 70%);
    animation: halka-don 70s linear infinite;
}

.maskot-baykus {
    position: absolute;
    left: 50%;
    top: 15%;
    height: 76%;
    aspect-ratio: 868 / 1159;
    transform: translateX(-50%);
    transform-origin: 50% 100%;
    filter: drop-shadow(0 22px 26px rgba(11, 47, 115, .18));
    animation: baykus-gir .9s ease-out both;
}
.maskot-baykus img, .baykus-gozler {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.maskot-baykus img { animation: baykus-suzul 4.4s ease-in-out infinite; }
.baykus-gozler { animation: baykus-suzul 4.4s ease-in-out infinite; overflow: visible; }

.maskot-balon {
    position: absolute;
    left: 50%;
    top: 0;
    z-index: 3;
    margin: 0;
    padding: 10px 18px;
    max-width: 94%;
    transform: translateX(-50%);
    border-radius: 999px;
    background: var(--lacivert-koyu);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 12px 28px rgba(8, 35, 88, .24);
    transition: opacity .18s, transform .18s;
}
.maskot-balon::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -6px;
    width: 12px;
    height: 12px;
    margin-left: -6px;
    background: inherit;
    transform: rotate(45deg);
    border-radius: 2px;
}
.maskot-balon em { font-style: normal; color: #8fb4ff; }
.maskot-balon.degisiyor { opacity: 0; transform: translateX(-50%) translateY(4px); }

.maskot-kart {
    position: absolute;
    z-index: 2;
    display: grid;
    grid-template-columns: auto auto;
    column-gap: 11px;
    align-items: center;
    padding: 10px 16px 10px 10px;
    border: 1px solid rgba(214, 223, 243, .9);
    border-radius: 16px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 14px 30px rgba(11, 47, 115, .09);
    cursor: default;
    animation: kart-suzul 5.2s ease-in-out infinite;
    transition: box-shadow .2s, border-color .2s;
}
.maskot-kart:hover { border-color: #9db7f2; box-shadow: 0 16px 34px rgba(31, 79, 209, .18); }
.maskot-kart b { font-size: 14px; color: var(--yazi); white-space: nowrap; }
.maskot-kart small { grid-column: 2; font-size: 12px; color: var(--soluk); white-space: nowrap; }
.maskot-ikon {
    grid-row: span 2;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: linear-gradient(145deg, #2f63e3, #0b2f73);
    color: #fff;
    box-shadow: 0 6px 14px rgba(31, 79, 209, .28);
}
.maskot-ikon svg { width: 20px; height: 20px; }
.maskot-kart.k1 { left: 0;   top: 20%; }
.maskot-kart.k2 { right: 0;  top: 17%; animation-delay: -1.3s; }
.maskot-kart.k3 { left: 2%;  top: 66%; animation-delay: -2.6s; }
.maskot-kart.k4 { right: 2%; top: 63%; animation-delay: -3.8s; }
.maskot-kart.k2 .maskot-ikon, .maskot-kart.k3 .maskot-ikon { background: linear-gradient(145deg, #f0b44c, #c47f12); box-shadow: 0 6px 14px rgba(196, 127, 18, .26); }

@keyframes baykus-gir { from { opacity: 0; } }
@keyframes baykus-suzul { 50% { transform: translateY(-8px); } }
@keyframes kart-suzul { 50% { transform: translateY(-7px); } }
@keyframes halka-don { to { transform: translate(-50%, -50%) rotate(360deg); } }

/* —— Panel: sade, Apple tarzı giriş kartı —— */
.giris-panel {
    --sf: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Manrope", "Segoe UI", system-ui, sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px clamp(24px, 5vw, 80px) 24px;
    position: relative;
    font-family: var(--sf);
}
.giris-icerik {
    width: 100%;
    max-width: 420px;
    margin: auto 0;
    animation: giris-yuksel .7s .1s cubic-bezier(.2, .7, .2, 1) both;
}

.giris-kart {
    padding: 40px 36px 32px;
    border: 1px solid rgba(20, 33, 61, .06);
    border-radius: 28px;
    background: rgba(255, 255, 255, .86);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    box-shadow:
        0 1px 2px rgba(20, 33, 61, .04),
        0 24px 60px -12px rgba(11, 47, 115, .14);
}
.giris-kart h1 {
    margin: 0 0 8px;
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -.025em;
    line-height: 1.1;
    color: #0f1729;
    text-align: center;
}
.giris-aciklama {
    margin: 0 auto 28px;
    max-width: 300px;
    color: var(--soluk);
    font-size: 15px;
    line-height: 1.5;
    text-align: center;
}

.giris-uyari {
    margin: 0 0 18px;
    padding: 12px 14px 12px 42px;
    border-radius: 14px;
    background: var(--hata-zemin) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b42318' stroke-width='1.8'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7.5v5.5M12 16.5h.01'/%3E%3C/svg%3E") 14px 50%/18px no-repeat;
    color: var(--hata);
    font-size: 14px;
    font-weight: 600;
}

/* İki alan tek blokta: Apple hesap ekranındaki gibi birleşik kutu */
.giris-alanlar {
    border: 1px solid #d2d6de;
    border-radius: 16px;
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
}
.giris-alanlar:focus-within {
    border-color: var(--cini);
    box-shadow: 0 0 0 4px rgba(31, 79, 209, .14);
}
.giris-kutu { position: relative; }
.giris-kutu + .giris-kutu { border-top: 1px solid #e3e6ec; }
.giris-kutu input {
    display: block;
    width: 100%;
    height: 60px;
    padding: 24px 52px 8px 18px;
    border: 0;
    border-radius: 16px;
    background: transparent;
    color: #0f1729;
    font: inherit;
    font-size: 17px;
    letter-spacing: -.01em;
    outline: none;
}
.giris-kutu label {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    transform-origin: 0 50%;
    color: #7a8294;
    font-size: 17px;
    pointer-events: none;
    transition: transform .18s cubic-bezier(.2, .7, .2, 1), color .18s;
}
.giris-kutu input:focus + label,
.giris-kutu input:not(:placeholder-shown) + label,
.giris-kutu input:-webkit-autofill + label {
    transform: translateY(-118%) scale(.72);
    color: #5b6680;
}
.giris-kutu input:focus + label { color: var(--cini); }
.giris-kutu input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 40px #fff inset;
    -webkit-text-fill-color: #0f1729;
}
.giris-uyari ~ .giris-form .giris-alanlar { border-color: #f4a8a1; }

.giris-goz {
    position: absolute;
    right: 8px;
    top: 50%;
    width: 40px;
    height: 40px;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: #8a93a8;
    cursor: pointer;
    transition: color .15s, background .15s;
}
.giris-goz svg { width: 20px; height: 20px; }
.giris-goz:hover { color: var(--lacivert); background: #f2f4f8; }
.giris-goz:focus-visible { outline: 2px solid var(--cini); outline-offset: 1px; }
.giris-goz[aria-pressed="true"] svg { color: var(--lacivert); }
.giris-goz[aria-pressed="true"]::after {
    content: "";
    position: absolute;
    width: 21px;
    height: 1.7px;
    background: currentColor;
    transform: rotate(-45deg);
}

.giris-capslock {
    margin: 10px 4px 0;
    font-size: 13px;
    font-weight: 600;
    color: #b54708;
}

.giris-buton {
    position: relative;
    width: 100%;
    height: 54px;
    margin-top: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 16px;
    background: linear-gradient(180deg, #2c62e8, #1f4fd1);
    color: #fff;
    font: inherit;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -.01em;
    cursor: pointer;
    box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 10px 24px -6px rgba(31, 79, 209, .5);
    transition: filter .2s, transform .12s, box-shadow .2s;
}
.giris-buton:hover { filter: brightness(1.06); box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 14px 30px -6px rgba(31, 79, 209, .55); }
.giris-buton:active { transform: scale(.985); }
.giris-buton:focus-visible { outline: 3px solid rgba(31, 79, 209, .4); outline-offset: 3px; }
.giris-ok { width: 19px; height: 19px; transition: transform .2s; }
.giris-buton:hover .giris-ok { transform: translateX(3px); }
.giris-donen {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, .35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: giris-don .8s linear infinite;
}
.giris-buton.gonderiliyor { pointer-events: none; opacity: .92; }
.giris-buton.gonderiliyor .giris-buton-yazi,
.giris-buton.gonderiliyor .giris-ok { display: none; }
.giris-buton.gonderiliyor .giris-donen { display: block; }

.giris-not {
    margin: 22px 0 0;
    text-align: center;
    font-size: 13px;
    line-height: 1.5;
    color: #7a8294;
}

.giris-alt {
    width: 100%;
    max-width: 420px;
    margin-top: 28px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 12px;
    color: var(--cok-soluk);
}
.giris-guvenli { display: inline-flex; align-items: center; gap: 6px; }
.giris-guvenli svg { width: 14px; height: 14px; color: #2e8b57; }

@keyframes giris-yuksel { from { opacity: 0; transform: translateY(14px); } }
@keyframes giris-don { to { transform: rotate(360deg); } }

/* —— Tablet / telefon —— */
@media (max-width: 900px) {
    .giris { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
    .giris-maskot { padding: 22px 16px 0; gap: 10px; }
    .giris-maskot::after {
        inset: auto 0 -1px 0;
        width: auto;
        height: 22%;
        background: linear-gradient(180deg, rgba(249, 245, 240, 0), var(--zemin));
    }
    .maskot-etiket { margin-bottom: 10px; font-size: 11px; }
    .maskot-baslik { font-size: clamp(26px, 6.4vw, 36px); }
    .maskot-sahne { width: min(560px, 100%); aspect-ratio: 1 / .62; max-height: none; }
    .maskot-baykus { top: 18%; height: 80%; }
    .maskot-balon { font-size: 12.5px; padding: 8px 14px; }
    .maskot-kart { padding: 7px 11px 7px 7px; column-gap: 8px; border-radius: 12px; }
    .maskot-kart b { font-size: 12.5px; }
    .maskot-kart small { display: none; }
    .maskot-ikon { grid-row: auto; width: 30px; height: 30px; border-radius: 9px; }
    .maskot-ikon svg { width: 16px; height: 16px; }
    .maskot-kart.k1, .maskot-kart.k2 { top: 24%; }
    .maskot-kart.k3, .maskot-kart.k4 { top: 62%; }
    .maskot-kart.k3 { left: 0; }
    .maskot-kart.k4 { right: 0; }
    .giris-panel { padding: 0 16px 22px; justify-content: flex-start; }
    .giris-icerik { max-width: 460px; margin: 0 auto; }
    .giris-kart { padding: 28px 22px 24px; border-radius: 24px; }
    .giris-kart h1 { font-size: 26px; }
    .giris-aciklama { margin-bottom: 22px; font-size: 14.5px; }
    .giris-alt { max-width: 460px; margin: 22px auto 0; }
}

/* Dar telefonda kartlar baykuşun üstüne biniyor; yalnız baykuş ve balon kalsın */
@media (max-width: 520px) {
    .maskot-kart { display: none; }
    .maskot-sahne { aspect-ratio: 1 / .7; }
    .maskot-baykus { top: 20%; height: 80%; }
}

/* Masaüstünde sayfa ekrana sabit: kaydırınca kaymasın, esnemesin.
   Ekran çok kısaysa form erişilebilir kalsın diye kaydırma açık kalır. */
@media (min-width: 901px) and (min-height: 620px) {
    html, body { overflow: hidden; }
    .giris { height: 100vh; height: 100dvh; min-height: 0; }
    .giris-maskot, .giris-panel { min-height: 0; overflow: hidden; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
