/* ============================================================
   AUTH PAGE — SocialZen
============================================================ */

/* ── Layout ── */
.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

/* ══════════════════════════════════════
   LEFT PANEL
══════════════════════════════════════ */
.auth-left {
  position: relative;
  background: linear-gradient(145deg, #0a0f1e 0%, #0f1830 40%, #120b24 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 48px;
}

.auth-left__inner {
  position: relative;
  z-index: 2;
  max-width: 440px;
  width: 100%;
}

/* Brand */
.auth-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 44px;
}
.auth-brand__name {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.4px;
}

/* Headline */
.auth-headline {
  margin-bottom: 36px;
}
.auth-headline h1 {
  font-size: 38px;
  font-weight: 900;
  color: #fff;
  line-height: 1.18;
  letter-spacing: -.8px;
  margin-bottom: 14px;
}
.auth-gradient-text {
  background: linear-gradient(90deg, #FF0080 0%, #7928CA 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.auth-headline p {
  font-size: 15px;
  color: rgba(255,255,255,.52);
  line-height: 1.65;
  max-width: 360px;
}

/* Stats */
.auth-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 36px;
  padding: 20px 24px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  backdrop-filter: blur(10px);
}
.auth-stat__val {
  display: block;
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.5px;
}
.auth-stat__label {
  display: block;
  font-size: 11.5px;
  color: rgba(255,255,255,.4);
  font-weight: 500;
  margin-top: 2px;
}
.auth-stat-div {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,.1);
}

/* Features */
.auth-features {
  list-style: none;
  padding: 0;
  margin: 0 0 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.auth-features li {
  display: flex;
  align-items: center;
  gap: 14px;
}
.auth-feat-ico {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--fc) 14%, transparent);
  color: var(--fc);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
  border: 1px solid color-mix(in srgb, var(--fc) 25%, transparent);
}
.auth-features strong {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
}
.auth-features p {
  font-size: 12px;
  color: rgba(255,255,255,.38);
  margin: 0;
}

/* Social proof */
.auth-proof {
  display: flex;
  align-items: center;
  gap: 14px;
}
.auth-proof__avatars {
  display: flex;
}
.auth-av {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2.5px solid #0a0f1e;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  margin-left: -8px;
  flex-shrink: 0;
}
.auth-av:first-child { margin-left: 0; }
.auth-av--more {
  background: rgba(255,255,255,.1);
  font-size: 9px;
  border: 2.5px solid rgba(255,255,255,.15);
  letter-spacing: -.3px;
}
.auth-proof p {
  font-size: 13px;
  color: rgba(255,255,255,.45);
  margin: 0;
}

/* Deco */
.auth-left__deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.auth-deco-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}
.auth-deco-blob--1 {
  width: 320px; height: 320px;
  top: -60px; right: -80px;
  background: radial-gradient(circle, rgba(255,0,128,.2) 0%, transparent 70%);
}
.auth-deco-blob--2 {
  width: 280px; height: 280px;
  bottom: -40px; left: -60px;
  background: radial-gradient(circle, rgba(121,40,202,.22) 0%, transparent 70%);
}
.auth-deco-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* ══════════════════════════════════════
   RIGHT PANEL
══════════════════════════════════════ */
.auth-right {
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 48px;
  overflow-y: auto;
}

.auth-box {
  width: 100%;
  max-width: 440px;
}

/* ── Back link ── */
.auth-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text3);
  text-decoration: none;
  margin-bottom: 20px;
  transition: color .15s, gap .2s;
}
.auth-back i {
  font-size: 12px;
  transition: transform .2s;
}
.auth-back:hover {
  color: var(--pink);
  gap: 10px;
}
.auth-back:hover i { transform: translateX(-3px); }

/* ── Tabs ── */
.auth-tabs {
  display: flex;
  position: relative;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 4px;
  margin-bottom: 28px;
  gap: 0;
}
.auth-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 11px 16px;
  border-radius: 10px;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--text3);
  cursor: pointer;
  transition: color .2s;
  position: relative;
  z-index: 1;
}
.auth-tab.active {
  color: #fff;
}
.auth-tab i { font-size: 13px; }

.auth-tab-slider {
  position: absolute;
  top: 4px; bottom: 4px;
  left: 4px;
  width: calc(50% - 4px);
  background: var(--g-brand);
  border-radius: 10px;
  transition: transform .28s cubic-bezier(.34,1.56,.64,1);
  box-shadow: 0 4px 16px rgba(255,0,128,.3);
  z-index: 0;
}

/* ── Panel ── */
.auth-panel {
  display: none;
  animation: authIn .22s ease;
}
.auth-panel.active { display: block; }

@keyframes authIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.auth-panel__head {
  margin-bottom: 22px;
}
.auth-panel__head h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.4px;
  margin-bottom: 5px;
}
.auth-panel__head p {
  font-size: 13.5px;
  color: var(--text3);
  margin: 0;
}

/* ── Social logins ── */
.auth-socials {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
}
.auth-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 14px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-s);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: border-color .18s, box-shadow .18s, transform .15s;
}
.auth-social-btn:hover {
  border-color: rgba(255,0,128,.3);
  box-shadow: 0 2px 10px rgba(255,0,128,.08);
  transform: translateY(-1px);
}

/* ── Divider ── */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  font-size: 12px;
  color: var(--text3);
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── Form ── */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

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

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.auth-field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text2);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.auth-optional {
  font-size: 11.5px;
  font-weight: 400;
  color: var(--text3);
}

.auth-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.auth-input-wrap > i:first-child {
  position: absolute;
  left: 14px;
  font-size: 14px;
  color: var(--text3);
  pointer-events: none;
  transition: color .18s;
}
.auth-input-wrap input {
  width: 100%;
  padding: 12px 44px 12px 40px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-s);
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
  outline: none;
  transition: border-color .18s, box-shadow .18s;
}
.auth-input-wrap input::placeholder { color: var(--text3); opacity: .7; }
.auth-input-wrap input:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(255,0,128,.1);
}
.auth-input-wrap input:focus + .auth-input-wrap > i:first-child,
.auth-input-wrap:focus-within > i:first-child {
  color: var(--pink);
}

.auth-eye {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: var(--text3);
  cursor: pointer;
  padding: 4px;
  font-size: 14px;
  transition: color .15s;
}
.auth-eye:hover { color: var(--pink); }

/* ── Hata durumu ── */
@keyframes authShake {
  0%,100% { transform: translateX(0); }
  15%      { transform: translateX(-6px); }
  30%      { transform: translateX(6px); }
  45%      { transform: translateX(-4px); }
  60%      { transform: translateX(4px); }
  75%      { transform: translateX(-2px); }
  90%      { transform: translateX(2px); }
}
.auth-input-wrap.has-error {
  animation: authShake .45s cubic-bezier(.36,.07,.19,.97) both;
}
.auth-input-wrap.has-error input {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239,68,68,.12);
  background: rgba(239,68,68,.03);
}
.auth-input-wrap.has-error > i:first-child {
  color: #ef4444;
}
.auth-field-error {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: #ef4444;
  margin-top: 2px;
  animation: authShake .45s cubic-bezier(.36,.07,.19,.97) both;
}

.auth-forgot {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--pink);
  text-decoration: none;
  transition: opacity .15s;
}
.auth-forgot:hover { opacity: .75; }

/* Password strength */
.auth-strength {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}
.auth-strength__bar {
  display: flex;
  gap: 4px;
  flex: 1;
}
.auth-strength__bar span {
  flex: 1;
  height: 3px;
  border-radius: 10px;
  background: var(--border);
  opacity: .18;
  transition: background .25s, opacity .25s;
}
.auth-strength__label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text3);
  white-space: nowrap;
  min-width: 60px;
  transition: color .25s;
}

/* Remember me */
.auth-remember { margin: -4px 0; }

/* Checkbox */
.auth-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text2);
  line-height: 1.45;
}
.auth-check input { display: none; }
.auth-check__box {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
  transition: border-color .18s, background .18s;
}
.auth-check__box::after {
  content: '';
  width: 5px;
  height: 9px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(40deg) translateY(-1px);
  opacity: 0;
  transition: opacity .15s;
}
.auth-check input:checked ~ .auth-check__box {
  background: var(--g-brand);
  border-color: transparent;
}
.auth-check input:checked ~ .auth-check__box::after { opacity: 1; }

.auth-terms {
  font-size: 12.5px;
  color: var(--text3);
}
.auth-terms a {
  color: var(--pink);
  text-decoration: none;
}
.auth-terms a:hover { text-decoration: underline; }

/* Submit */
.auth-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  padding: 14px;
  background: var(--g-brand);
  border: none;
  border-radius: var(--r-s);
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  transition: opacity .18s, transform .18s, box-shadow .18s;
  box-shadow: 0 6px 24px rgba(255,0,128,.35);
  margin-top: 4px;
  position: relative;
  overflow: hidden;
}
.auth-submit:hover {
  opacity: .92;
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(255,0,128,.45);
}
.auth-submit:active { transform: translateY(0); }

.auth-submit.loading { pointer-events: none; }
.auth-submit.loading i { display: none; }
.auth-submit.loading::after {
  content: '';
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255,255,255,.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .65s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Switch */
.auth-switch {
  text-align: center;
  font-size: 13.5px;
  color: var(--text3);
  margin: 18px 0 16px;
}
.auth-switch__btn {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--pink);
  cursor: pointer;
  padding: 0;
  transition: opacity .15s;
}
.auth-switch__btn:hover { opacity: .75; }

/* Trust badges */
.auth-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text3);
}
.auth-trust span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.auth-trust i { font-size: 13px; color: var(--pink); }

/* ── Dark Mode Adjustments ── */
[data-theme="dark"] .auth-social-btn {
  background: rgba(255,255,255,.04);
}
[data-theme="dark"] .auth-input-wrap input {
  background: rgba(255,255,255,.05);
}

/* ── Responsive ── */
@media (max-width: 960px) {
  .auth-page {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .auth-left {
    padding: 40px 32px;
  }
  .auth-headline h1 {
    font-size: 28px;
  }
  .auth-features { display: none; }
  .auth-proof { display: none; }
}

@media (max-width: 600px) {
  .auth-left { display: none; }
  .auth-right { padding: 24px 20px 40px; }
  .auth-socials { grid-template-columns: 1fr; }
  .auth-row { grid-template-columns: 1fr; }
  .auth-trust { flex-wrap: wrap; gap: 10px; }
}
