/* ============================================================
   AUTH SHELL — Giriş / Üye Ol sayfaları
   Tamamen .authx altında kapsüllenmiştir; auth.css'e (hesabım,
   siparişlerim vb. sayfalar) dokunmaz.
   ============================================================ */

.authx {
    --ax-shell: #f2efea;
    --ax-paper: #ffffff;
    --ax-ink: #191715;
    --ax-ink-soft: #24201d;
    --ax-line: #e4ded6;
    --ax-line-soft: #efe9e2;
    --ax-text: #221f1c;
    --ax-muted: #6e6660;
    --ax-faint: #a89e96;
    --ax-brand: #f35b23;
    --ax-brand-2: #f68d1f;
    /* sağ panel: sıcak beyaz zemin + turuncu hairline'lar */
    --ax-panel-bg: #fff7f1;
    --ax-edge: rgba(186, 68, 24, .32);
    --ax-edge-strong: rgba(186, 68, 24, .62);

    --ax-label: 600 .66rem/1.2 var(--font-body);
    --ax-radius: 18px;

    position: relative;
    padding: clamp(1.75rem, 4vw, 3.5rem) 0 clamp(2.5rem, 5vw, 4.5rem);
    background-color: var(--ax-shell);
    color: var(--ax-text);
    overflow: hidden;
}

/* teknik çizim zemini — çok soluk 32px ızgara */
.authx::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        repeating-linear-gradient(to right, rgba(25, 23, 21, .045) 0 1px, transparent 1px 32px),
        repeating-linear-gradient(to bottom, rgba(25, 23, 21, .045) 0 1px, transparent 1px 32px);
    -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 25%, transparent 78%);
    mask-image: radial-gradient(120% 90% at 50% 0%, #000 25%, transparent 78%);
}

.authx__wrap {
    position: relative;
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 3vw, 2rem);
}

.authx__card {
    display: grid;
    grid-template-columns: 1.06fr 0.94fr;
    background: var(--ax-paper);
    border: 1px solid var(--ax-line);
    border-radius: var(--ax-radius);
    box-shadow: 0 1px 2px rgba(25, 23, 21, .04), 0 18px 48px -18px rgba(25, 23, 21, .22);
    overflow: hidden;
}

/* ── Sağ: marka paneli (sıcak beyaz + turuncu) ───────────── */

.ax-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: clamp(1.25rem, 2.6vw, 2rem);
    padding: clamp(1.75rem, 3vw, 2.75rem);
    border-left: 1px solid var(--ax-line);
    background: var(--ax-panel-bg);
    color: var(--ax-text);
}

/* çizimin arkasında çok soluk turuncu ışıma */
.ax-panel::after {
    content: '';
    position: absolute;
    right: -12%;
    bottom: -8%;
    width: 78%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(243, 91, 35, .13), rgba(243, 91, 35, 0) 68%);
    pointer-events: none;
}

.ax-panel > * {
    position: relative;
    z-index: 1;
}

.ax-panel__brand {
    display: flex;
    align-items: baseline;
    gap: .55rem;
    font: var(--ax-label);
    letter-spacing: .11em;
    text-transform: uppercase;
    color: var(--ax-muted);
}

.ax-panel__brand b {
    font-weight: 700;
    color: var(--ax-text);
}

.ax-panel__brand span {
    color: var(--ax-brand);
}

.ax-panel__claim {
    margin: 0;
    max-width: 22ch;
    font-family: var(--font-heading);
    font-size: clamp(1.4rem, 2.4vw, 1.95rem);
    font-weight: 600;
    line-height: 1.22;
    letter-spacing: -.02em;
    text-wrap: balance;
    color: var(--ax-text);
}

.ax-panel__claim em {
    font-style: normal;
    color: var(--ax-brand);
}

.ax-panel__list {
    display: flex;
    flex-direction: column;
    gap: .7rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ax-panel__list li {
    display: flex;
    align-items: flex-start;
    gap: .7rem;
    font-size: .89rem;
    line-height: 1.5;
    color: var(--ax-muted);
}

.ax-panel__list i {
    flex: 0 0 auto;
    margin-top: .18rem;
    font-size: .78rem;
    color: var(--ax-brand);
}

/* ── Teknik çizim: dolap kesiti + ölçü çizgileri ─────────── */

.ax-draft {
    display: grid;
    grid-template-columns: 2.25rem minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) 1.75rem;
    margin: auto 0 0;
    padding-top: .5rem;
}

.ax-draft__frame {
    grid-area: 1 / 2;
    position: relative;
    aspect-ratio: 5 / 4;
    display: grid;
    grid-template-columns: 38% 62%;
    border: 1px solid var(--ax-edge-strong);
    border-radius: 5px;
    background: linear-gradient(155deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, .35) 70%);
    box-shadow: 0 10px 24px -18px rgba(243, 91, 35, .55);
    overflow: hidden;
}

.ax-bay + .ax-bay {
    border-left: 1px solid var(--ax-edge);
}

/* raflı göz */
.ax-bay--shelf {
    display: grid;
    grid-template-rows: repeat(4, 1fr);
}

.ax-shelf {
    border-bottom: 1px solid var(--ax-edge);
}

.ax-shelf:last-child {
    border-bottom: 0;
}

.ax-shelf--lit {
    background: linear-gradient(180deg, rgba(243, 91, 35, .26), rgba(246, 141, 31, .07));
    box-shadow: inset 0 0 0 1px rgba(243, 91, 35, .4);
}

/* askılıklı göz */
.ax-bay--hang {
    position: relative;
}

.ax-rail {
    position: absolute;
    left: 8%;
    right: 8%;
    top: 15%;
    height: 1px;
    background: var(--ax-edge-strong);
}

.ax-hanger {
    position: absolute;
    top: 15%;
    width: 7px;
    height: 7px;
    margin: -3px 0 0 -3.5px;
    border: 1px solid var(--ax-edge-strong);
    border-radius: 50%;
}

.ax-hanger::before,
.ax-hanger::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 2px;
    width: 1px;
    height: 22px;
    background: var(--ax-edge);
    transform-origin: top center;
}

.ax-hanger::before { transform: rotate(23deg); }
.ax-hanger::after  { transform: rotate(-23deg); }

.ax-hanger:nth-of-type(1) { left: 26%; }
.ax-hanger:nth-of-type(2) { left: 50%; }
.ax-hanger:nth-of-type(3) { left: 74%; }

/* çekmeceli alt blok */
.ax-drawers {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 34%;
    display: grid;
    grid-template-rows: 1fr 1fr;
    border-top: 1px solid var(--ax-edge-strong);
}

.ax-drawer + .ax-drawer {
    border-top: 1px solid var(--ax-edge);
}

.ax-drawer {
    position: relative;
}

.ax-drawer::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 34%;
    height: 2px;
    border-radius: 2px;
    background: var(--ax-edge-strong);
    transform: translate(-50%, -50%);
}

/* ölçü çizgileri */
.ax-dim {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font: var(--ax-label);
    font-size: .58rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(160, 58, 20, .8);
}

.ax-dim b {
    position: relative;
    z-index: 1;
    padding: .1rem .4rem;
    font-weight: 600;
    background: var(--ax-panel-bg);
}

.ax-dim--v {
    grid-area: 1 / 1;
}

.ax-dim--v b {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
}

.ax-dim--v::before {
    content: '';
    position: absolute;
    top: 2px;
    bottom: 2px;
    left: 50%;
    width: 1px;
    background: var(--ax-edge);
}

.ax-dim--h {
    grid-area: 2 / 2;
}

.ax-dim--h::before {
    content: '';
    position: absolute;
    left: 2px;
    right: 2px;
    top: 50%;
    height: 1px;
    background: var(--ax-edge);
}

/* ── Sağ: form ───────────────────────────────────────────── */

.ax-form-side {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(1.75rem, 3vw, 2.75rem);
}

.ax-head {
    margin-bottom: 1.5rem;
}

.ax-head__kicker {
    display: block;
    margin-bottom: .55rem;
    font: var(--ax-label);
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--ax-brand);
}

.ax-head h1 {
    margin: 0 0 .3rem;
    font-family: var(--font-heading);
    font-size: clamp(1.45rem, 2.2vw, 1.7rem);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -.015em;
    color: var(--ax-text);
}

.ax-head p {
    margin: 0;
    max-width: 42ch;
    font-size: .92rem;
    color: var(--ax-muted);
}

/* alanlar */
.ax-form {
    display: flex;
    flex-direction: column;
    gap: 1.05rem;
}

.ax-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.05rem;
}

.ax-field {
    display: flex;
    flex-direction: column;
    gap: .45rem;
    min-width: 0;
}

.ax-field > label {
    font: var(--ax-label);
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ax-muted);
}

.ax-field > label .required {
    color: var(--ax-brand);
}

.ax-in {
    display: flex;
    align-items: center;
    background: var(--ax-paper);
    border: 1px solid var(--ax-line);
    border-radius: 10px;
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.ax-in:hover {
    border-color: #d8d0c6;
}

.ax-in:focus-within {
    border-color: var(--ax-brand);
    box-shadow: 0 0 0 3px rgba(243, 91, 35, .13);
}

.ax-in > .ax-ico {
    flex: 0 0 2.6rem;
    text-align: center;
    font-size: .9rem;
    color: var(--ax-faint);
    pointer-events: none;
}

.ax-in:focus-within > .ax-ico {
    color: var(--ax-brand);
}

.ax-in input {
    flex: 1 1 auto;
    min-width: 0;
    padding: .82rem .9rem .82rem 0;
    border: 0;
    background: transparent;
    font-family: var(--font-body);
    font-size: .95rem;
    font-weight: 500;
    color: var(--ax-text);
}

.ax-in input:focus {
    outline: none;
}

.ax-in input::placeholder {
    font-weight: 400;
    color: #b8b0a8;
}

.ax-in .password-toggle {
    flex: 0 0 auto;
    padding: .5rem .85rem;
    border: 0;
    background: none;
    font-size: .9rem;
    line-height: 1;
    color: var(--ax-faint);
    cursor: pointer;
    transition: color .18s ease;
}

.ax-in .password-toggle:hover,
.ax-in .password-toggle:focus-visible {
    color: var(--ax-brand);
}

/* satır içi yardımcılar */
.ax-inline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: -.15rem;
}

.ax-check {
    display: flex;
    align-items: flex-start;
    gap: .55rem;
    font-size: .87rem;
    line-height: 1.45;
    color: var(--ax-muted);
}

.ax-check label {
    cursor: pointer;
}

.ax-check input[type="checkbox"] {
    flex: 0 0 auto;
    width: 1.05rem;
    height: 1.05rem;
    margin-top: .1rem;
    accent-color: var(--ax-brand);
    cursor: pointer;
}

.ax-check a {
    color: var(--ax-text);
    text-decoration: underline;
    text-decoration-color: var(--ax-line);
    text-underline-offset: 3px;
    transition: color .18s ease, text-decoration-color .18s ease;
}

.ax-check a:hover {
    color: var(--ax-brand);
    text-decoration-color: currentColor;
}

.ax-forgot {
    font-size: .87rem;
    font-weight: 500;
    color: var(--ax-muted);
    text-decoration: none;
    transition: color .18s ease;
}

.ax-forgot:hover {
    color: var(--ax-brand);
}

/* buton */
.authx .auth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    width: 100%;
    margin-top: .25rem;
    padding: .95rem 1.25rem;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--ax-brand), var(--ax-brand-2));
    box-shadow: 0 8px 20px -10px rgba(243, 91, 35, .8);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: .01em;
    color: #fff;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.authx .auth-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 12px 26px -10px rgba(243, 91, 35, .85);
    filter: saturate(1.06);
}

.authx .auth-btn:active:not(:disabled) {
    transform: translateY(0);
}

.authx .auth-btn:disabled {
    background: #cdc5bd;
    box-shadow: none;
    cursor: not-allowed;
}

/* alt bölüm */
.ax-foot {
    display: flex;
    flex-direction: column;
    gap: .85rem;
    padding-top: 1.75rem;
}

.ax-foot__rule {
    display: flex;
    align-items: center;
    gap: .85rem;
    font: var(--ax-label);
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ax-faint);
}

.ax-foot__rule::before,
.ax-foot__rule::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--ax-line);
}

.ax-foot__switch {
    margin: 0;
    font-size: .92rem;
    color: var(--ax-muted);
}

.ax-foot__switch a {
    font-weight: 600;
    color: var(--ax-brand);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color .18s ease;
}

.ax-foot__switch a:hover {
    border-bottom-color: currentColor;
}

.ax-secure {
    display: flex;
    align-items: center;
    gap: .45rem;
    font-size: .78rem;
    color: var(--ax-faint);
}

/* uyarı kutusu */
.authx .alert {
    display: none;
    align-items: flex-start;
    gap: .6rem;
    margin-bottom: 1.1rem;
    padding: .8rem .95rem;
    border-radius: 10px;
    font-size: .9rem;
    line-height: 1.45;
}

.authx .alert.show {
    display: flex;
}

.authx .alert i {
    margin-top: .15rem;
}

.authx .alert-success {
    background: #eaf7f0;
    border-left: 3px solid #17916a;
    color: #10553f;
}

.authx .alert-error {
    background: #fdecea;
    border-left: 3px solid #d64027;
    color: #8e2415;
}

/* klavye odağı */
.authx a:focus-visible,
.authx button:focus-visible,
.authx input:focus-visible {
    outline: 2px solid var(--ax-brand);
    outline-offset: 2px;
}

/* metin alanlarında odak halkasını sarmalayıcı (.ax-in) gösterir —
   içteki input ayrıca çerçeve çizmesin, iki halka üst üste binmesin */
.authx .ax-in input:focus,
.authx .ax-in input:focus-visible {
    outline: none;
}

/* ── Açılış animasyonu ───────────────────────────────────── */

@keyframes ax-rise {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes ax-glow {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.ax-panel > *,
.ax-head,
.ax-form,
.ax-foot {
    animation: ax-rise .5s cubic-bezier(.22, .61, .36, 1) both;
}

.ax-panel__brand  { animation-delay: .02s; }
.ax-panel__claim  { animation-delay: .08s; }
.ax-panel__list   { animation-delay: .14s; }
.ax-draft         { animation-delay: .2s; }
.ax-head          { animation-delay: .1s; }
.ax-form          { animation-delay: .16s; }
.ax-foot          { animation-delay: .22s; }

.ax-shelf--lit,
.ax-hanger {
    animation: ax-glow .5s ease both;
}

.ax-shelf--lit            { animation-delay: .5s; }
.ax-hanger:nth-of-type(1) { animation-delay: .38s; }
.ax-hanger:nth-of-type(2) { animation-delay: .46s; }
.ax-hanger:nth-of-type(3) { animation-delay: .54s; }

@media (prefers-reduced-motion: reduce) {
    .authx *,
    .authx *::before,
    .authx *::after {
        animation: none !important;
        transition: none !important;
    }
}

/* ── Responsive ──────────────────────────────────────────── */

@media (max-width: 900px) {
    .authx__card {
        grid-template-columns: 1fr;
    }

    .ax-panel {
        gap: 1.1rem;
        border-left: 0;
        border-top: 1px solid var(--ax-line);
    }

    .ax-panel__claim {
        max-width: 34ch;
    }

    .ax-panel::after,
    .ax-draft {
        display: none;
    }
}

@media (max-width: 560px) {
    .authx__wrap {
        padding: 0 .9rem;
    }

    .authx__card {
        border-radius: 14px;
    }

    .ax-panel,
    .ax-form-side {
        padding: 1.4rem 1.25rem;
    }

    .ax-row {
        grid-template-columns: 1fr;
    }

    .ax-inline {
        flex-direction: column;
        align-items: flex-start;
        gap: .6rem;
    }
}
