/* ============================================================
   ÜNİTERCİH 360 — Giriş / Kayıt (auth)
   Düz renkler, gradyansız, sade kurumsal görünüm.
   ============================================================ */

.page-auth { background: var(--ink-50); }

/* Gradyansız düz buton (auth + dashboard ortak) */
.btn--accent {
    background: var(--brand-700);
    color: #fff;
    box-shadow: none;
}
.btn--accent:hover { background: var(--brand-600); transform: translateY(-1px); }
.btn--accent:active { transform: translateY(0); }

/* ---------- Düzen: iki sütun ---------- */
.auth {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
}

/* Sol tanıtım paneli — düz koyu lacivert */
.auth__aside {
    background: var(--brand-800);
    color: #fff;
    padding: 2.5rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}
.auth__aside::after {
    content: "";
    position: absolute;
    right: -120px;
    bottom: -120px;
    width: 320px;
    height: 320px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 50%;
}
.auth__aside::before {
    content: "";
    position: absolute;
    right: -60px;
    bottom: -60px;
    width: 220px;
    height: 220px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 50%;
}
.auth__brand {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    font-weight: 800;
    font-size: 1.2rem;
    color: #fff;
    letter-spacing: -.02em;
}
.auth__brand-logo { display: block; width: auto; height: 38px; }

.auth__aside-body { position: relative; z-index: 1; max-width: 30rem; }
.auth__aside-title {
    color: #fff;
    font-size: clamp(1.6rem, 2.6vw, 2.1rem);
    line-height: 1.2;
    margin-bottom: 1rem;
}
.auth__aside-lead { color: rgba(255, 255, 255, .8); font-size: 1rem; margin-bottom: 1.75rem; }
.auth__points { display: flex; flex-direction: column; gap: .85rem; }
.auth__points li {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    color: rgba(255, 255, 255, .92);
    font-size: .95rem;
}
.auth__points .icon { color: var(--brand-300); flex: none; margin-top: .15rem; }
.auth__aside-foot {
    position: relative;
    z-index: 1;
    margin: 0;
    color: rgba(255, 255, 255, .55);
    font-size: .82rem;
    font-weight: 600;
}

/* Sağ form alanı */
.auth__main {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1.5rem;
}
.auth__card {
    width: 100%;
    max-width: 26rem;
}

.auth__head { margin-bottom: 1.5rem; }
.auth__title { font-size: 1.7rem; margin-bottom: .35rem; }
.auth__sub { color: var(--ink-500); margin: 0; }

.auth__alt {
    margin: 1.5rem 0 0;
    text-align: center;
    color: var(--ink-600);
    font-size: .95rem;
}
.auth__alt a { color: var(--brand-700); font-weight: 700; }
.auth__alt a:hover { text-decoration: underline; }
.auth__alt--note {
    margin-top: .5rem;
    font-size: .82rem;
    color: var(--txt-soft);
    line-height: 1.45;
}

/* ---------- Form alanları ---------- */
.auth-form { display: flex; flex-direction: column; gap: 1.1rem; }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field__row { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.field__label { font-size: .88rem; font-weight: 700; color: var(--ink-700); }
.field__opt { font-weight: 500; color: var(--ink-400); font-size: .82rem; }

.field__input {
    width: 100%;
    font: inherit;
    font-size: .95rem;
    color: var(--ink-900);
    background: var(--white);
    border: 1px solid var(--ink-200);
    border-radius: var(--radius-sm);
    padding: .7rem .85rem;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.field__input::placeholder { color: var(--ink-400); }
.field__input:focus {
    outline: none;
    border-color: var(--brand-400);
    box-shadow: 0 0 0 3px rgba(60, 81, 128, .15);
}
.field__select { appearance: none; cursor: pointer; }

.field.is-invalid .field__input { border-color: var(--danger); }
.field.is-invalid .field__input:focus { box-shadow: 0 0 0 3px rgba(239, 68, 68, .15); }
.field__error { font-size: .82rem; color: var(--danger); font-weight: 600; }
.field__error--block { display: block; margin-top: -.4rem; }

.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }

/* Şifre alanı + göster/gizle */
.field__pw { position: relative; }
.field__pw .field__input { padding-right: 4.2rem; }
.field__pw-toggle {
    position: absolute;
    top: 50%;
    right: .5rem;
    transform: translateY(-50%);
    border: 0;
    background: var(--ink-100);
    color: var(--ink-600);
    font-size: .78rem;
    font-weight: 700;
    padding: .35rem .6rem;
    border-radius: 8px;
}
.field__pw-toggle:hover { background: var(--ink-200); color: var(--ink-800); }

/* Şifre gücü göstergesi */
.pw-meter {
    height: 5px;
    border-radius: 999px;
    background: var(--ink-100);
    overflow: hidden;
}
.pw-meter__bar {
    display: block;
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: var(--ink-300, #cbd5e1);
    transition: width .2s ease, background .2s ease;
}
.pw-meter[data-level="1"] .pw-meter__bar { width: 33%; background: var(--danger); }
.pw-meter[data-level="2"] .pw-meter__bar { width: 66%; background: var(--warning); }
.pw-meter[data-level="3"] .pw-meter__bar { width: 100%; background: var(--success); }

/* Onay kutusu */
.check {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    font-size: .9rem;
    color: var(--ink-600);
    line-height: 1.5;
}
.check input { margin-top: .2rem; width: 18px; height: 18px; flex: none; accent-color: var(--brand-700); }
.check a { color: var(--brand-700); font-weight: 700; }
.check a:hover { text-decoration: underline; }

/* ---------- Flash mesajları ---------- */
.flash-stack {
    display: flex;
    flex-direction: column;
    gap: .6rem;
    margin-bottom: 1.25rem;
}
.flash {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .75rem .9rem;
    border-radius: var(--radius-sm);
    font-size: .9rem;
    font-weight: 600;
    border: 1px solid transparent;
}
.flash .icon { flex: none; }
.flash__text { flex: 1; }
.flash__close {
    border: 0;
    background: transparent;
    font-size: 1.25rem;
    line-height: 1;
    color: inherit;
    opacity: .6;
    padding: 0 .25rem;
}
.flash__close:hover { opacity: 1; }
.flash--success { background: #ecfdf5; color: #047857; border-color: #a7f3d0; }
.flash--error   { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }
.flash--warning { background: #fffbeb; color: #b45309; border-color: #fde68a; }
.flash--info    { background: var(--brand-50); color: var(--brand-700); border-color: var(--brand-100); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
    .auth { grid-template-columns: 1fr; }
    .auth__aside { display: none; }
    .auth__main { padding: 2rem 1.25rem; min-height: 100vh; }
}
@media (max-width: 420px) {
    .field-grid { grid-template-columns: 1fr; }
    .auth__title { font-size: 1.5rem; }
}
