﻿body.auth-page { background: var(--soft); }

  /* Minimal top bar */
  .auth-top {
    background: white;
    border-bottom: 1px solid var(--line-2);
    padding: 16px 0;
  }
  .auth-top-inner {
    max-width: var(--shop-wrap, 1200px); margin: 0 auto; padding: 0 var(--shop-gutter, 32px);
    display: flex; justify-content: space-between; align-items: center;
  }
  .auth-top .back {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 13px; color: var(--muted); font-weight: 600;
  }
  .auth-top .back:hover { color: var(--primary); }
  .auth-top .help {
    font-size: 12.5px; color: var(--muted);
  }
  .auth-top .help a { color: var(--primary); font-weight: 700; }

  /* Page wrapper */
  .auth-wrap {
    min-height: calc(100vh - 73px);
    padding: 36px 0 56px;
  }
  .auth-grid {
    max-width: var(--shop-wrap, 1200px);
    margin: 0 auto;
    padding: 0 var(--shop-gutter, 32px);
    display: grid;
    grid-template-columns: 1fr 480px;
    gap: 36px;
    align-items: start;
  }

  /* LEFT panel — value props with floating label preview */
  .auth-side {
    background: linear-gradient(140deg, #0F172A 0%, #1E293B 60%, #312E81 100%);
    color: white;
    border-radius: 24px;
    padding: 40px 40px 0;
    position: relative;
    overflow: hidden;
    min-height: 720px;
    display: flex;
    flex-direction: column;
  }
  .auth-side::before {
    content: '';
    position: absolute; inset: 0;
    background:
      radial-gradient(circle at 100% 0%, rgba(139,92,246,.35), transparent 50%),
      radial-gradient(circle at 0% 100%, rgba(37,99,235,.25), transparent 50%);
    pointer-events: none;
  }
  .auth-side > * { position: relative; z-index: 1; }

  .auth-side .eyebrow {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 12px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 999px;
    font-size: 11px; font-weight: 700;
    letter-spacing: .04em;
    color: rgba(255,255,255,.9);
    margin-bottom: 20px;
    align-self: flex-start;
  }
  .auth-side .eyebrow svg { width: 12px; height: 12px; }
  .auth-side h2 {
    font-size: 36px; font-weight: 800;
    line-height: 1.1; letter-spacing: -0.025em;
    margin-bottom: 14px;
    max-width: 440px;
    text-wrap: balance;
  }
  .auth-side h2 .grad {
    background: linear-gradient(135deg, #93C5FD 0%, #C4B5FD 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
  }
  .auth-side .lead {
    font-size: 15px; opacity: .8; line-height: 1.55;
    max-width: 420px;
    margin-bottom: 28px;
  }

  /* Value list */
  .auth-feats {
    display: flex; flex-direction: column; gap: 16px;
    margin-bottom: 32px;
  }
  .auth-feat {
    display: grid; grid-template-columns: 40px 1fr; gap: 14px;
    align-items: flex-start;
  }
  .auth-feat .ic {
    width: 40px; height: 40px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: #A5B4FC;
    flex-shrink: 0;
  }
  .auth-feat .ic svg { width: 18px; height: 18px; }
  .auth-feat h4 { font-size: 14px; font-weight: 800; margin-bottom: 3px; }
  .auth-feat p { font-size: 12.5px; opacity: .7; line-height: 1.5; }

  /* Trust stats */
  .auth-stats {
    margin-top: auto;
    padding: 20px 0 32px;
    border-top: 1px solid rgba(255,255,255,.1);
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  }
  .auth-stat .v {
    font-size: 22px; font-weight: 800; letter-spacing: -0.02em;
    background: linear-gradient(135deg, #93C5FD 0%, #C4B5FD 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
  }
  .auth-stat .k {
    font-size: 11.5px; opacity: .65; margin-top: 2px;
  }

  /* Floating label demo card */
  .auth-demo {
    position: absolute;
    right: -20px;
    top: 80px;
    width: 220px;
    background: white;
    color: var(--ink);
    border-radius: 18px;
    padding: 16px;
    box-shadow: 0 30px 60px rgba(15,23,42,.4);
    transform: rotate(6deg);
    z-index: 2;
  }
  .auth-demo .badge {
    display: inline-flex; align-items: center; gap: 5px;
    background: var(--violet-50); color: var(--violet);
    padding: 3px 8px; border-radius: 999px;
    font-size: 10px; font-weight: 800;
    margin-bottom: 12px;
  }
  .auth-demo .badge svg { width: 10px; height: 10px; }
  .auth-demo .lbl-prev {
    background: linear-gradient(180deg, #FFFCEB 0%, #FFF7CC 100%);
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 12px;
    display: flex; align-items: center; justify-content: center;
  }
  .auth-demo .row {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 11px;
  }
  .auth-demo .row strong { font-weight: 800; }
  .auth-demo .row .score { color: var(--success); font-weight: 800; }

  .auth-demo-2 {
    position: absolute;
    right: 40px;
    bottom: 100px;
    background: rgba(255,255,255,.06);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 16px;
    padding: 14px 16px;
    width: 240px;
    z-index: 2;
    transform: rotate(-3deg);
  }
  .auth-demo-2 .row {
    display: flex; align-items: center; gap: 10px; margin-bottom: 8px;
  }
  .auth-demo-2 .row:last-child { margin-bottom: 0; }
  .auth-demo-2 .av {
    width: 26px; height: 26px;
    background: linear-gradient(135deg, var(--primary), var(--violet));
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
  }
  .auth-demo-2 .av svg { width: 12px; height: 12px; color: white; }
  .auth-demo-2 .txt { font-size: 11.5px; opacity: .9; line-height: 1.4; }
  .auth-demo-2 .txt b { font-weight: 800; }

  /* RIGHT panel — form card */
  .auth-card {
    background: white;
    border-radius: 24px;
    padding: 36px;
    box-shadow: 0 4px 14px rgba(15,23,42,.04), 0 1px 2px rgba(15,23,42,.03);
  }
  .auth-card .logo {
    display: inline-flex; align-items: center; gap: 8px;
    font-weight: 800; font-size: 18px;
    margin-bottom: 26px;
  }
  .auth-card .logo-mark {
    width: 30px; height: 30px;
    background: linear-gradient(135deg, #2563EB 0%, #3B82F6 100%);
    border-radius: 7px;
    display: inline-flex; align-items: center; justify-content: center;
    color: white;
  }
  .auth-card .logo-mark svg { width: 16px; height: 16px; }

  /* Tabs */
  .auth-tabs {
    display: flex;
    background: var(--soft);
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 26px;
  }
  .auth-tab {
    flex: 1;
    text-align: center;
    padding: 11px;
    border-radius: 9px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--muted);
    cursor: pointer;
    transition: all .15s;
  }
  .auth-tab.active {
    background: white;
    color: var(--ink);
    box-shadow: 0 1px 3px rgba(15,23,42,.06), 0 1px 2px rgba(15,23,42,.04);
  }

  .auth-card h1 {
    font-size: 24px; font-weight: 800; letter-spacing: -0.02em;
    margin-bottom: 4px;
  }
  .auth-card .sub {
    font-size: 13px; color: var(--muted); margin-bottom: 24px;
  }

  /* Social */
  .social-btns {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    margin-bottom: 18px;
  }
  .social-btn {
    background: white;
    border: 1.5px solid var(--line);
    padding: 11px;
    border-radius: 10px;
    font-weight: 700; font-size: 13px;
    color: var(--ink);
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    transition: all .15s;
  }
  .social-btn:hover { border-color: var(--ink); transform: translateY(-1px); }
  .social-btn svg { width: 16px; height: 16px; }

  .divider {
    display: flex; align-items: center; gap: 12px;
    margin: 18px 0;
    color: var(--muted);
    font-size: 11.5px;
    font-weight: 600;
  }
  .divider::before, .divider::after {
    content: ''; flex: 1; height: 1px; background: var(--line-2);
  }

  /* Fields */
  .auth-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
  .auth-field label { font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
  .auth-input {
    position: relative;
    display: flex; align-items: center;
    border: 1.5px solid var(--line);
    border-radius: 10px;
    transition: border-color .15s;
    background: white;
  }
  .auth-input:focus-within { border-color: var(--primary); }
  .auth-input svg.lead-ic {
    width: 18px; height: 18px;
    color: var(--muted-2);
    margin-left: 14px;
  }
  .auth-input input {
    flex: 1; border: none; outline: none;
    padding: 13px 14px;
    font-family: inherit;
    font-size: 14px;
    color: var(--ink);
    background: transparent;
  }
  .auth-input .toggle {
    color: var(--muted);
    padding: 0 14px;
    cursor: pointer;
  }
  .auth-input .toggle svg { width: 16px; height: 16px; }

  /* Phone with country */
  .phone-wrap { display: grid; grid-template-columns: 100px 1fr; gap: 8px; }
  .phone-wrap .auth-input { padding-right: 0; }
  .phone-wrap select {
    border: 1.5px solid var(--line);
    border-radius: 10px;
    padding: 13px 10px;
    font-family: inherit; font-size: 13px;
    background: white;
    outline: none;
  }

  .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

  .auth-help-row {
    display: flex; justify-content: space-between; align-items: center;
    margin: 6px 0 20px;
    font-size: 12.5px;
  }
  .remember { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); cursor: pointer; font-weight: 500; }
  .remember input { width: 15px; height: 15px; accent-color: var(--primary); }
  .forgot { color: var(--primary); font-weight: 700; }

  .submit-big {
    width: 100%;
    background: var(--primary);
    color: white;
    padding: 14px;
    border-radius: 11px;
    font-weight: 800;
    font-size: 14px;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    box-shadow: 0 10px 24px rgba(37,99,235,.28);
    transition: all .15s;
  }
  .submit-big:hover { background: var(--primary-700); transform: translateY(-1px); }
  .submit-big svg { width: 16px; height: 16px; }

  /* Strength meter */
  .strength {
    margin-top: 8px;
    display: flex; flex-direction: column; gap: 6px;
  }
  .strength-bar {
    height: 4px;
    background: var(--soft-2);
    border-radius: 2px;
    overflow: hidden;
    display: flex; gap: 3px;
  }
  .strength-seg { flex: 1; background: var(--soft-2); border-radius: 2px; }
  .strength-seg.on-1 { background: var(--danger); }
  .strength-seg.on-2 { background: var(--warning); }
  .strength-seg.on-3 { background: #84CC16; }
  .strength-seg.on-4 { background: var(--success); }
  .strength-label { font-size: 11px; color: var(--muted); display: flex; justify-content: space-between; }
  .strength-label .lvl { font-weight: 800; color: #84CC16; }

  /* KVKK */
  .kvkk {
    display: flex; gap: 10px;
    margin: 18px 0 22px;
    font-size: 11.5px; color: var(--muted);
    line-height: 1.5;
  }
  .kvkk input { width: 16px; height: 16px; accent-color: var(--primary); margin-top: 1px; flex-shrink: 0; }
  .kvkk a { color: var(--primary); text-decoration: underline; font-weight: 600; }

  /* Footer text */
  .auth-foot {
    margin-top: 22px;
    text-align: center;
    font-size: 12.5px; color: var(--muted);
  }
  .auth-foot a { color: var(--primary); font-weight: 700; }

  /* Hide register by default */
  .pane { display: none; }
  .pane.active { display: block; }

  /* AI shortcut card */
  .ai-shortcut {
    background: linear-gradient(135deg, #EFF6FF 0%, #F5F3FF 100%);
    border: 1px solid rgba(37,99,235,.15);
    border-radius: 14px;
    padding: 14px 16px;
    margin-top: 18px;
    display: grid;
    grid-template-columns: 36px 1fr auto;
    gap: 12px;
    align-items: center;
  }
  .ai-shortcut .av {
    width: 36px; height: 36px;
    background: linear-gradient(135deg, var(--primary), var(--violet));
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: white;
  }
  .ai-shortcut .av svg { width: 16px; height: 16px; }
  .ai-shortcut h5 { font-size: 12.5px; font-weight: 800; margin-bottom: 1px; }
  .ai-shortcut p { font-size: 11px; color: var(--muted); }
  .ai-shortcut a {
    font-size: 12px; font-weight: 800; color: var(--primary);
    display: inline-flex; align-items: center; gap: 4px;
  }
  .ai-shortcut a svg { width: 12px; height: 12px; }

  /* Account benefits ticker (mobile-style) */
  .ticker {
    display: flex; gap: 8px;
    overflow: hidden;
    margin-bottom: 18px;
  }
  .ticker-pill {
    background: var(--soft);
    border: 1px solid var(--line-2);
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 11px; font-weight: 600;
    color: var(--ink-2);
    display: inline-flex; align-items: center; gap: 5px;
    white-space: nowrap;
  }
  .ticker-pill svg { width: 11px; height: 11px; color: var(--success); }

  /* ===== Responsive ===== */
  @media (max-width: 860px) {
    .auth-grid { grid-template-columns: 1fr; padding: 0 20px; }
    .auth-side { display: none; }
    .auth-wrap { padding: 20px 0 40px; }
    .auth-top-inner { padding: 0 20px; }
  }
  @media (max-width: 600px) {
    .auth-grid { padding: 0 16px; }
    .auth-top-inner { padding: 0 16px; }
    .social-btns { grid-template-columns: 1fr; }
    .auth-card { border-radius: 16px; padding: 22px 18px; }
  }
