/* ==========================================================================
   OSBİK kimlik doğrulama sayfaları (giriş) — yalnızca .auth kapsamında
   ========================================================================== */

.auth {
    --auth-ink: var(--tyn-emphasis-color, #111827);
    --auth-muted: var(--tyn-secondary-color, #6b7280);
    --auth-line: var(--tyn-border-color, #e5e7eb);
    --auth-primary: var(--tyn-primary, #185ff1);
    --auth-primary-rgb: var(--tyn-primary-rgb, 24, 95, 241);
    --auth-input-h: 3.1rem;
    min-height: 100vh;
    background: var(--tyn-body-bg, #fff);
}

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

/* ---------- Form tarafı ---------- */
.auth-form-side {
    display: flex;
    flex-direction: column;
    padding: 2rem clamp(1.25rem, 5vw, 4.5rem);
}

.auth-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.auth-logo img { display: block; height: 52px; width: auto; }
.auth-back {
    font-size: .85rem;
    font-weight: 500;
    color: var(--auth-muted);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}
.auth-back:hover { color: var(--auth-primary); }

.auth-card {
    width: 100%;
    max-width: 420px;
    margin: auto;
    padding: 3rem 0;
}

.auth-title {
    font-size: clamp(1.6rem, 1.3rem + 1vw, 2rem);
    font-weight: 700;
    letter-spacing: -.025em;
    color: var(--auth-ink);
    margin-bottom: .4rem;
}
.auth-sub { color: var(--auth-muted); margin-bottom: 2rem; }

.auth .form-label { font-size: .875rem; font-weight: 500; color: var(--auth-ink); margin-bottom: .45rem; }

.auth-input { position: relative; }
.auth-input > .bi {
    position: absolute;
    left: 1rem;
    top: calc(var(--auth-input-h) / 2);
    transform: translateY(-50%);
    color: var(--auth-muted);
    font-size: 1rem;
    pointer-events: none;
    z-index: 4;
}
.auth-input .form-control {
    height: var(--auth-input-h);
    padding-left: 2.75rem;
    font-size: .95rem;
    border-radius: 12px;
}
.auth-input .form-control:focus {
    border-color: var(--auth-primary);
    box-shadow: 0 0 0 4px rgba(var(--auth-primary-rgb), .12);
}
.auth .password-toggle .password-toggle-button { height: var(--auth-input-h); }

.auth-link { color: var(--auth-primary); text-decoration: none; font-weight: 500; }
.auth-link:hover { text-decoration: underline; }

.auth-submit {
    height: var(--auth-input-h);
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    box-shadow: 0 10px 24px -12px rgba(var(--auth-primary-rgb), .8);
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0 1.25rem;
    color: var(--auth-muted);
    font-size: .8rem;
}
.auth-divider::before,
.auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--auth-line); }

.auth-register { display: grid; grid-template-columns: minmax(0, 1fr); gap: .75rem; }
.auth-register-item {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .85rem .9rem;
    border-radius: 14px;
    border: 1px solid var(--auth-line);
    color: var(--auth-ink);
    text-decoration: none;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.auth-register-item:hover {
    border-color: rgba(var(--auth-primary-rgb), .5);
    box-shadow: 0 10px 24px -16px rgba(var(--auth-primary-rgb), .6);
    transform: translateY(-1px);
    color: var(--auth-ink);
}
.auth-register-item strong { display: block; font-size: .875rem; font-weight: 600; line-height: 1.25; }
.auth-register-item small { display: block; font-size: .75rem; color: var(--auth-muted); }
.auth-register-item > .bi-chevron-right { color: var(--auth-muted); font-size: .8rem; }
.auth-register-icon {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    color: var(--auth-primary);
    background: rgba(var(--auth-primary-rgb), .1);
}

.auth-foot { font-size: .75rem; color: var(--auth-muted); text-align: center; }
.auth-foot a { color: inherit; }

/* ---------- Marka tarafı ---------- */
.auth-brand-side {
    position: relative;
    display: flex;
    align-items: center;
    margin: 1rem 1rem 1rem 0;
    border-radius: 28px;
    overflow: hidden;
    color: #cbd5e1;
    background:
        radial-gradient(70% 60% at 100% 0%, rgba(59, 130, 246, .45) 0%, rgba(59, 130, 246, 0) 60%),
        radial-gradient(60% 50% at 0% 100%, rgba(var(--auth-primary-rgb), .35) 0%, rgba(var(--auth-primary-rgb), 0) 60%),
        #0b1324;
}
.auth-brand-side::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 0%, transparent 80%);
    mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 0%, transparent 80%);
}
.auth-brand-inner { position: relative; padding: clamp(2.5rem, 5vw, 4.5rem); max-width: 600px; }

.auth-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .4rem .85rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .15);
    background: rgba(255, 255, 255, .06);
    font-size: .8rem;
    color: #e2e8f0;
}
.auth-eyebrow i { color: #60a5fa; }

.auth-brand-title {
    color: #fff;
    font-size: clamp(2rem, 1.4rem + 1.8vw, 3rem);
    font-weight: 700;
    letter-spacing: -.035em;
    line-height: 1.1;
    margin: 1.5rem 0 2rem;
}

.auth-points { list-style: none; padding: 0; margin: 0 0 2.5rem; display: grid; gap: .9rem; }
.auth-points li { display: flex; gap: .75rem; align-items: flex-start; line-height: 1.55; }
.auth-points i {
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: .9rem;
    color: #fff;
    background: rgba(96, 165, 250, .25);
    margin-top: .05rem;
}

.auth-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 18px;
    background: rgba(255, 255, 255, .04);
    backdrop-filter: blur(4px);
}
.auth-stats > div { padding: 1.1rem 1.25rem; }
.auth-stats > div + div { border-left: 1px solid rgba(255, 255, 255, .12); }
.auth-stats strong {
    display: block;
    color: #fff;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -.02em;
    font-variant-numeric: tabular-nums;
}
.auth-stats span { font-size: .8rem; }

/* ---------- Duyarlı ---------- */
@media (max-width: 991.98px) {
    .auth-grid { grid-template-columns: minmax(0, 1fr); }
    .auth-brand-side { display: none; }
    .auth-card { padding: 2.5rem 0; }
}
@media (max-width: 479.98px) {
    .auth-form-side { padding: 1.25rem; }
    .auth-logo img { height: 44px; }
}
