/* ════════════════════════════════════════════════════════════════════════════════
   KURSYERİM — POP / NEO-BRUTALIST GİRİŞ SAYFASI (LOGIN.CSS)
   Tasarım #2 (Pop Teması): Sarı nokta desenli zemin, yüzen geometrik şekiller,
   kalın siyah kenarlıklar, 8px sert gölge ve ikonik sarı çıkartma logo.
   ════════════════════════════════════════════════════════════════════════════════ */

:root {
    --bg: #fff3d1;
    --fg: #111111;
    --mut: #555555;
    --card: #ffffff;
    --bd: #111111;
    --bw: 3px;
    --sh: 8px 8px 0 #111111;
    --in: #ffffff;
    --ac: #ff5fa8;
    --btn: #111111;
    --bt: #ffd43b;
    --r: 12px;
    --ri: 10px;
    --bi: 2px solid #111111;
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.4;
    min-height: 100vh;
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    place-items: center;
    padding: 24px 16px 40px;
    overflow-x: hidden;
    background-color: var(--bg);
    color: var(--fg);
    background-image: radial-gradient(#e9c46a 1.5px, transparent 1.5px);
    background-size: 22px 22px;
    position: relative;
}

/* ── Yüzen Arka Plan Geometrik Şekilleri ── */
.bg {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.bg i {
    position: absolute;
    display: block;
    width: 54px;
    height: 54px;
    border: 3px solid #111111;
    left: var(--x);
    top: var(--y);
    background: #ff5fa8;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.15);
    will-change: transform;
    animation: bob 6s ease-in-out infinite alternate;
    animation-delay: var(--d);
}

.bg i:nth-child(1)  { --x: 5%;  --y: 10%; --d: 0s; }
.bg i:nth-child(2)  { --x: 22%; --y: 70%; --d: -2s; }
.bg i:nth-child(3)  { --x: 40%; --y: 30%; --d: -4s; }
.bg i:nth-child(4)  { --x: 58%; --y: 80%; --d: -6s; }
.bg i:nth-child(5)  { --x: 75%; --y: 20%; --d: -8s; }
.bg i:nth-child(6)  { --x: 90%; --y: 60%; --d: -3s; }
.bg i:nth-child(7)  { --x: 12%; --y: 50%; --d: -5s; }
.bg i:nth-child(8)  { --x: 30%; --y: 15%; --d: -7s; }
.bg i:nth-child(9)  { --x: 48%; --y: 85%; --d: -1s; }
.bg i:nth-child(10) { --x: 66%; --y: 40%; --d: -9s; }
.bg i:nth-child(11) { --x: 82%; --y: 75%; --d: -10s; }
.bg i:nth-child(12) { --x: 95%; --y: 25%; --d: -11s; }

.bg i:nth-child(2n) {
    background: #4cc9f0;
}

.bg i:nth-child(3n) {
    background: #ffd43b;
    border-radius: 50%;
}

.bg i:nth-child(n+10) {
    display: none;
}

@keyframes bob {
    from {
        transform: translateY(0) rotate(-6deg);
    }
    to {
        transform: translateY(-30px) rotate(10deg);
    }
}

/* ── Ana Giriş Kartı (Neo-Brutalist White Card) ── */
.card {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: min(410px, calc(100vw - 24px));
    min-width: 0;
    padding: 34px 30px 26px;
    border-radius: var(--r);
    background: var(--card);
    border: var(--bw) solid var(--bd);
    box-shadow: var(--sh);
    animation: in 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes in {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ── Logo (Sarı Çıkartma Rozeti) ── */
.logo {
    text-align: center;
    margin-bottom: 2px;
}

.logo b {
    display: inline-block;
    font-family: 'Inter', "Segoe UI", system-ui, sans-serif;
    font-size: 32px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.5px;
    background: #ffd43b;
    color: #14151f;
    padding: 10px 22px;
    border-radius: 15px;
    border: 3px solid #111111;
    transform: rotate(-2deg);
    box-shadow: 4px 4px 0 #111111;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    user-select: none;
}

.logo b:hover {
    transform: rotate(0deg) scale(1.03);
}

.logo em {
    font-style: normal;
    background: linear-gradient(135deg, #ff2d87, #ff6bb0);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ── Başlıklar ── */
h1 {
    font-size: 22px;
    font-weight: 700;
    text-align: center;
    margin: 20px 0 3px;
    color: var(--fg);
    letter-spacing: -0.3px;
}

.sub {
    text-align: center;
    color: var(--mut);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

/* ── Hata Kutusu (ModelState) ── */
.error-box {
    background: #fff1f2;
    border: 2px solid #111111;
    border-radius: 10px;
    box-shadow: 4px 4px 0 #111111;
    padding: 12px 14px;
    margin: 16px 0 12px;
    color: #9f1239;
    font-size: 13px;
    line-height: 1.45;
    animation: in 0.3s ease both;
}

.error-box-header {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    color: #881337;
    margin-bottom: 4px;
}

.error-box-list {
    margin: 0;
    padding-left: 20px;
}

/* ── Form Elemanları ── */
.l {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin: 16px 0 6px;
    color: var(--mut);
    letter-spacing: -0.01em;
}

.f {
    position: relative;
    width: 100%;
}

.inp {
    width: 100%;
    padding: 14px 16px;
    border-radius: var(--ri);
    border: var(--bi);
    background: var(--in);
    color: var(--fg);
    font: inherit;
    font-size: 15px;
    outline: 0;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.inp::placeholder {
    color: var(--mut);
    opacity: 0.65;
}

.inp:focus {
    border-color: var(--ac);
    box-shadow: 0 0 0 4px rgba(255, 95, 168, 0.28);
}

/* Şifre Göster/Gizle Butonu */
#eye {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: 0;
    cursor: pointer;
    font-size: 18px;
    opacity: 0.65;
    padding: 6px 8px;
    border-radius: 6px;
    transition: opacity 0.2s, transform 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
}

#eye:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

/* Beni Hatırla */
.row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 16px 0 18px;
    font-size: 14px;
    font-weight: 500;
    color: var(--mut);
    cursor: pointer;
    user-select: none;
}

.row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--ac);
    border: 2px solid #111111;
    border-radius: 4px;
    cursor: pointer;
}

/* ── Giriş Butonu ── */
.go {
    width: 100%;
    padding: 15px;
    border: 0;
    border-radius: var(--ri);
    background: var(--btn);
    color: var(--bt);
    font-weight: 700;
    font-size: 16px;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.2s, filter 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.2);
}

.go:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
    box-shadow: 0 6px 0 rgba(0, 0, 0, 0.25);
}

.go:active {
    transform: translateY(0);
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.2);
}

.go:disabled {
    opacity: 0.75;
    cursor: not-allowed;
    transform: none;
}

/* Buton İçi Yükleniyor Spinnerı */
.btn-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2.5px solid rgba(255, 212, 59, 0.35);
    border-radius: 50%;
    border-top-color: #ffd43b;
    animation: rot 0.6s linear infinite;
}

@keyframes rot {
    to { transform: rotate(360deg); }
}

/* ── Alt Telif Bilgisi ── */
.ft {
    text-align: center;
    font-size: 12px;
    font-weight: 500;
    color: var(--mut);
    margin-top: 20px;
}

/* ── Güvenlik Rozetleri (İnce Neo-Brutalist Çizgi) ── */
.sec-bar {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1.5px dashed #dddddd;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    font-size: 11px;
    font-weight: 600;
    color: #777777;
}

.sec-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ── Hareketi Azalt Tercihi ── */
@media (prefers-reduced-motion: reduce) {
    *, .card, .bg i, .go {
        animation: none !important;
        transition: none !important;
    }
}

/* ── Mobil Uyumluluk ── */
@media (max-width: 480px) {
    body {
        padding: 16px 12px 30px;
    }
    .card {
        padding: 26px 20px 20px;
        box-shadow: 6px 6px 0 #111111;
    }
    .logo b {
        font-size: 28px;
        padding: 8px 18px;
    }
    h1 {
        font-size: 20px;
        margin: 16px 0 2px;
    }
    .sub {
        font-size: 13px;
    }
    .inp {
        padding: 12px 14px;
        font-size: 14px;
    }
    .go {
        padding: 13px;
        font-size: 15px;
    }
    .bg i {
        width: 42px;
        height: 42px;
    }
}
