/* ============ Giriş sayfası ============ */
.auth-page {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    background: #fff;
    color: #0f1f33;
}

.auth-shell {
    display: grid;
    grid-template-columns: minmax(440px, 1.1fr) minmax(400px, 1fr);
    min-height: 100vh;
    min-height: 100dvh;
}

/* ---------- Sol marka paneli ---------- */
/* Koyu mavi zemin + flu ışıklar: eski giriş ekranındaki bokeh görüntüsünden esinlenildi */
.auth-brand {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    color: #fff;
    background:
        radial-gradient(ellipse 80% 60% at 15% 0%, rgba(78, 125, 178, .55) 0%, transparent 70%),
        radial-gradient(ellipse 70% 50% at 100% 100%, rgba(215, 196, 160, .35) 0%, transparent 70%),
        linear-gradient(165deg, #0b1d33 0%, #143659 40%, #295680 70%, #8aa6c1 100%);
}

.auth-bokeh { position: absolute; inset: 0; pointer-events: none; z-index: -2; }

.auth-bokeh span {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 50%,
        rgba(255, 246, 225, .95) 0%,
        rgba(255, 240, 210, .55) 35%,
        rgba(255, 236, 200, .15) 60%,
        rgba(255, 236, 200, 0) 72%);
    filter: blur(3px);
    transform: translate(-50%, -50%);
    mix-blend-mode: screen;
    animation: auth-drift 24s ease-in-out infinite alternate;
}

@keyframes auth-drift {
    from { transform: translate(-50%, -50%) scale(1); }
    to   { transform: translate(calc(-50% + 18px), calc(-50% - 26px)) scale(1.08); }
}

/* Çok hafif dimi (twill) dokuma dokusu — tekstil göndermesi */
.auth-weave {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: .05;
    background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.95) 0 1px, transparent 1px 5px);
    -webkit-mask-image: radial-gradient(ellipse 90% 80% at 20% 20%, #000 0%, transparent 85%);
    mask-image: radial-gradient(ellipse 90% 80% at 20% 20%, #000 0%, transparent 85%);
}

/* Metinler okunur kalsın diye soldan sağa hafif karartma */
.auth-brand::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, rgba(6, 18, 34, .62) 0%, rgba(6, 18, 34, .2) 70%, rgba(6, 18, 34, .05) 100%);
    pointer-events: none;
}

.auth-brand-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: clamp(2rem, 4vw, 3.5rem) clamp(2rem, 5vw, 4.5rem);
}

.auth-logo {
    display: inline-flex;
    align-self: flex-start;
    padding: .55rem .85rem;
    background: rgba(255, 255, 255, .92);
    border: 1px solid rgba(255, 255, 255, .6);
    border-radius: .65rem;
    box-shadow: 0 1px 0 rgba(255,255,255,.4) inset, 0 10px 30px rgba(3, 12, 24, .25);
}

.auth-logo img { display: block; width: 138px; height: auto; }

.auth-brand-copy {
    margin: auto 0;
    max-width: 32rem;
    padding: 2.5rem 0;
}

.auth-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .72);
    margin-bottom: 1.1rem;
}

.auth-eyebrow::before {
    content: "";
    width: 1.75rem;
    height: 2px;
    border-radius: 2px;
    /* logodaki renkli şeritlere selam */
    background: linear-gradient(90deg, #e94b3c, #f5b700, #3aa655, #2f80c8);
}

.auth-brand-copy h1 {
    font-size: clamp(2rem, 3.2vw, 2.85rem);
    line-height: 1.12;
    font-weight: 700;
    letter-spacing: -.03em;
    margin-bottom: 1rem;
}

.auth-lead {
    font-size: 1.075rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, .78);
    margin-bottom: 2.25rem;
    max-width: 28rem;
}

.auth-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 1.1rem;
}

.auth-features li { display: flex; align-items: flex-start; gap: .9rem; }

.auth-features i {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: .7rem;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .16);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    font-size: 1.05rem;
}

.auth-features strong { display: block; font-weight: 600; font-size: .95rem; margin-bottom: .1rem; }
.auth-features span { display: block; font-size: .9rem; color: rgba(255, 255, 255, .7); line-height: 1.45; }

.auth-brand-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: .35rem 1.5rem;
    font-size: .8rem;
    color: rgba(255, 255, 255, .55);
}
.auth-brand-footer a { color: rgba(255, 255, 255, .7); text-decoration: none; }
.auth-brand-footer a:hover { color: #fff; }
.auth-brand-footer strong { font-weight: 600; }
.auth-panel-footer a { color: inherit; text-decoration: none; font-weight: 600; }
.auth-panel-footer a:hover { color: var(--brand); }

/* ---------- Sağ panel: giriş formu ---------- */
.auth-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
    background: #fff;
}

.auth-card { width: 100%; max-width: 380px; }

.auth-mobile-logo { display: none; }

.auth-card-header { margin-bottom: 2rem; }

.auth-card-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -.025em;
    color: #0f1f33;
    margin-bottom: .45rem;
}

.auth-card-header p { color: #5f6b7a; margin: 0; font-size: .95rem; line-height: 1.55; }

.auth-field { margin-bottom: 1.25rem; }

.auth-card .form-label {
    font-weight: 600;
    font-size: .85rem;
    color: #2a3a4c;
    margin-bottom: .4rem;
}

.auth-input { position: relative; }

.auth-input > i {
    position: absolute;
    left: .95rem;
    top: 50%;
    transform: translateY(-50%);
    color: #8a97a6;
    font-size: 1.05rem;
    pointer-events: none;
    transition: color .15s ease;
}

.auth-input .form-control {
    height: 3.15rem;
    padding: .65rem 1rem .65rem 2.75rem;
    font-size: 1rem; /* iOS'ta odaklanınca yakınlaştırmayı önler (>= 16px) */
    color: #0f1f33;
    background-color: #f7f9fb;
    border: 1px solid #d9e0e7;
    border-radius: .7rem;
    transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.auth-input .form-control::placeholder { color: #a3aebb; }

.auth-input .form-control:hover { border-color: #c3ccd6; }

.auth-input .form-control:focus {
    background-color: #fff;
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(31, 78, 121, .12);
}

.auth-input:focus-within > i { color: var(--brand); }

.auth-input .form-control.input-validation-error { border-color: #d63b4b; background-color: #fffafa; }

.auth-input:has(.auth-toggle) .form-control { padding-right: 3.1rem; }

.auth-toggle {
    position: absolute;
    right: .4rem;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    border: 0;
    border-radius: .55rem;
    background: transparent;
    color: #6b7785;
    transition: background-color .15s ease, color .15s ease;
}

.auth-toggle:hover { color: var(--brand); background: rgba(31, 78, 121, .07); }
.auth-toggle:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }

.auth-capslock {
    margin-top: .45rem;
    font-size: .8rem;
    font-weight: 500;
    color: #9a6700;
}

.auth-remember {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .25rem 1rem;
    margin: -.25rem 0 .5rem;
}
.auth-remember .form-check { margin: 0; }
.auth-remember .form-check-input { width: 1.1rem; height: 1.1rem; margin-top: .15rem; cursor: pointer; }
.auth-remember .form-check-input:checked { background-color: var(--brand); border-color: var(--brand); }
.auth-remember .form-check-input:focus { box-shadow: 0 0 0 4px rgba(31, 78, 121, .12); border-color: var(--brand); }
.auth-remember .form-check-label { font-size: .9rem; color: #2a3a4c; cursor: pointer; padding-left: .2rem; }
.auth-remember-hint { font-size: .78rem; color: #8a97a6; }

.auth-field-error { display: block; margin-top: .35rem; font-size: .82rem; color: #c42b3b; }
.auth-field-error:empty { display: none; }

.auth-submit {
    margin-top: .75rem;
    height: 3.15rem;
    font-weight: 600;
    font-size: 1rem;
    border-radius: .7rem;
    background: linear-gradient(180deg, #24598a 0%, #1c4a74 100%);
    border: 1px solid #173d61;
    box-shadow: 0 1px 0 rgba(255, 255, 255, .15) inset, 0 6px 16px rgba(20, 54, 89, .22);
    transition: transform .12s ease, box-shadow .15s ease, filter .15s ease;
}

.auth-submit:hover { filter: brightness(1.06); box-shadow: 0 1px 0 rgba(255, 255, 255, .15) inset, 0 10px 22px rgba(20, 54, 89, .28); }
.auth-submit:active { transform: translateY(1px); }
.auth-submit:focus-visible { box-shadow: 0 0 0 4px rgba(31, 78, 121, .25); }
.auth-submit .bi-arrow-right { transition: transform .15s ease; display: inline-block; }
.auth-submit:hover .bi-arrow-right { transform: translateX(3px); }

.auth-submit .auth-submit-busy { display: none; }
.auth-submit.is-busy { pointer-events: none; opacity: .85; }
.auth-submit.is-busy .auth-submit-text { display: none; }
.auth-submit.is-busy .auth-submit-busy { display: inline; }

.auth-card .validation-summary-valid { display: none; }
.auth-card .validation-summary-errors {
    display: flex;
    align-items: center;
    gap: .55rem;
    padding: .7rem .9rem;
    border: 1px solid #f3c2c7;
    border-radius: .7rem;
    background: #fff5f6;
    color: #a1202f;
    font-weight: 500;
}
.auth-card .validation-summary-errors::before { content: "\F33A"; font-family: "bootstrap-icons"; }
.auth-card .validation-summary-errors ul { list-style: none; margin: 0; padding: 0; }

.auth-help {
    display: flex;
    gap: .6rem;
    margin-top: 2rem;
    padding: .9rem 1rem;
    border-radius: .7rem;
    background: #f5f7fa;
    font-size: .85rem;
    color: #5f6b7a;
    line-height: 1.5;
}

.auth-help > i { color: #8a97a6; font-size: 1rem; line-height: 1.3; }
.auth-help p { margin: 0; }
.auth-help strong { color: #2a3a4c; font-weight: 600; }

.auth-panel-footer { display: none; }

/* ---------- Tablet ---------- */
@media (max-width: 1099.98px) {
    .auth-shell { grid-template-columns: 1fr 1fr; }
    .auth-features span { display: none; }
}

@media (max-width: 899.98px) {
    .auth-features { display: none; }
}

/* ---------- Mobil: marka paneli üstte kompakt bant ---------- */
@media (max-width: 767.98px) {
    .auth-page { background: #f4f6f9; }

    .auth-shell { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }

    .auth-brand-inner {
        padding: calc(1.75rem + env(safe-area-inset-top)) 1.5rem 3.25rem;
        align-items: center;
        text-align: center;
    }

    .auth-logo { display: none; }
    .auth-brand-copy { margin: 0; padding: 0; }
    .auth-eyebrow { margin-bottom: .6rem; font-size: .68rem; }
    .auth-brand-copy h1 { font-size: 1.4rem; margin-bottom: .4rem; }
    .auth-brand-copy h1 br { display: none; }
    .auth-lead { font-size: .92rem; margin: 0 auto; }
    .auth-brand-footer { display: none; }

    .auth-panel {
        justify-content: flex-start;
        margin-top: -1.5rem;
        border-radius: 1.5rem 1.5rem 0 0;
        position: relative;
        z-index: 2;
        padding: 1.75rem 1.25rem calc(1.5rem + env(safe-area-inset-bottom));
        box-shadow: 0 -10px 30px rgba(6, 18, 34, .14);
    }

    .auth-mobile-logo { display: flex; justify-content: center; margin-bottom: 1.25rem; }
    .auth-mobile-logo img { width: 132px; height: auto; }

    .auth-card-header { margin-bottom: 1.5rem; text-align: center; }
    .auth-card-header h2 { font-size: 1.45rem; }
    .auth-help { margin-top: 1.5rem; }

    .auth-panel-footer {
        display: block;
        margin-top: auto;
        padding-top: 2rem;
        font-size: .78rem;
        color: #9aa5b1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .auth-bokeh span { animation: none; }
    .auth-submit, .auth-submit .bi-arrow-right { transition: none; }
}

/* Bokeh noktaları (konum, boyut, parlaklık, hareket süresi) */
.auth-bokeh span:nth-child(1) { left: 36%; top: 54%; width: 180px; height: 180px; opacity: 0.68; animation-duration: 17s; animation-delay: -17s; }
.auth-bokeh span:nth-child(2) { left: 7%; top: 81%; width: 220px; height: 220px; opacity: 0.38; animation-duration: 24s; animation-delay: -6s; }
.auth-bokeh span:nth-child(3) { left: -1%; top: 46%; width: 180px; height: 180px; opacity: 0.56; animation-duration: 19s; animation-delay: -2s; }
.auth-bokeh span:nth-child(4) { left: 65%; top: 89%; width: 90px; height: 90px; opacity: 0.76; animation-duration: 17s; animation-delay: -7s; }
.auth-bokeh span:nth-child(5) { left: 75%; top: 42%; width: 220px; height: 220px; opacity: 0.64; animation-duration: 16s; animation-delay: -7s; }
.auth-bokeh span:nth-child(6) { left: 0%; top: 52%; width: 150px; height: 150px; opacity: 0.56; animation-duration: 24s; animation-delay: -3s; }
.auth-bokeh span:nth-child(7) { left: 68%; top: 74%; width: 220px; height: 220px; opacity: 0.76; animation-duration: 18s; animation-delay: -3s; }
.auth-bokeh span:nth-child(8) { left: 69%; top: 59%; width: 150px; height: 150px; opacity: 0.4; animation-duration: 27s; animation-delay: -2s; }
.auth-bokeh span:nth-child(9) { left: 67%; top: 42%; width: 220px; height: 220px; opacity: 0.45; animation-duration: 26s; animation-delay: -17s; }
.auth-bokeh span:nth-child(10) { left: 49%; top: 75%; width: 180px; height: 180px; opacity: 0.64; animation-duration: 23s; animation-delay: -11s; }
.auth-bokeh span:nth-child(11) { left: 33%; top: 66%; width: 120px; height: 120px; opacity: 0.7; animation-duration: 19s; animation-delay: -2s; }
.auth-bokeh span:nth-child(12) { left: 68%; top: 73%; width: 220px; height: 220px; opacity: 0.6; animation-duration: 21s; animation-delay: -14s; }
.auth-bokeh span:nth-child(13) { left: 31%; top: 44%; width: 90px; height: 90px; opacity: 0.61; animation-duration: 18s; animation-delay: -10s; }
.auth-bokeh span:nth-child(14) { left: 14%; top: 97%; width: 180px; height: 180px; opacity: 0.37; animation-duration: 26s; animation-delay: -2s; }
.auth-bokeh span:nth-child(15) { left: 71%; top: 20%; width: 80px; height: 80px; opacity: 0.29; animation-duration: 29s; animation-delay: -15s; }
.auth-bokeh span:nth-child(16) { left: 74%; top: 29%; width: 60px; height: 60px; opacity: 0.32; animation-duration: 24s; animation-delay: -15s; }
.auth-bokeh span:nth-child(17) { left: 89%; top: 4%; width: 60px; height: 60px; opacity: 0.3; animation-duration: 24s; animation-delay: -20s; }
.auth-bokeh span:nth-child(18) { left: 73%; top: 28%; width: 80px; height: 80px; opacity: 0.29; animation-duration: 34s; animation-delay: -11s; }
.auth-bokeh span:nth-child(19) { left: 2%; top: 29%; width: 80px; height: 80px; opacity: 0.18; animation-duration: 21s; animation-delay: -15s; }
.auth-bokeh span:nth-child(20) { left: 7%; top: 13%; width: 80px; height: 80px; opacity: 0.18; animation-duration: 23s; animation-delay: -12s; }