/* ============================================================
   MyGarage Giriş / Kayıt — bölünmüş ekran
   Sol: uygulama tanıtımı (her temada koyu, marka yüzeyi)
   Sağ: form (temaya uyum sağlar)
   ============================================================ */
.session-user { display: flex; align-items: center; gap: 9px; }

.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  background: #07090c;
  color: #fff;
}

/* ---------- Sağ üst araç çubuğu: dil + tema ---------- */
.auth-toolbar {
  position: fixed; top: 20px; right: 24px; z-index: 50;
  display: flex; align-items: center; gap: 8px;
  padding: 6px; border-radius: 12px;
  background: rgba(13, 17, 22, .55); backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, .08);
}
.auth-toolbar .lang-switch { display: flex; background: rgba(255, 255, 255, .06); border-radius: 8px; padding: 2px; gap: 2px; }
.auth-toolbar .lang-switch button {
  border: 0; background: transparent; color: #9aa3ad;
  font: 800 10px Manrope, sans-serif; letter-spacing: .4px;
  padding: 6px 11px; border-radius: 6px; cursor: pointer; transition: .15s;
}
.auth-toolbar .lang-switch button:hover:not(.active) { color: #fff; }
.auth-toolbar .lang-switch button.active { background: #e9003f; color: #fff; }
.auth-toolbar .top-action { width: 32px; height: 32px; color: #eef2f5; }
.auth-toolbar .top-action:hover { background: rgba(255, 255, 255, .08) !important; }
html[data-theme="light"] .auth-toolbar { background: rgba(255, 255, 255, .8); border-color: var(--mg-line); }
html[data-theme="light"] .auth-toolbar .lang-switch { background: rgba(9, 14, 20, .05); }
html[data-theme="light"] .auth-toolbar .lang-switch button { color: var(--mg-muted); }
html[data-theme="light"] .auth-toolbar .lang-switch button:hover:not(.active) { color: var(--mg-text); }
html[data-theme="light"] .auth-toolbar .lang-switch button.active { background: var(--mg-accent); color: #fff; }
html[data-theme="light"] .auth-toolbar .top-action { color: #444e5a; }
html[data-theme="light"] .auth-toolbar .top-action:hover { background: rgba(9, 14, 20, .06) !important; }
@media (max-width: 560px) { .auth-toolbar { top: 12px; right: 12px; padding: 4px; gap: 6px; } .auth-toolbar .lang-switch button { padding: 5px 8px; font-size: 9px; } }

/* ---------- SOL: tanıtım paneli ---------- */
.auth-hero {
  position: sticky; top: 0; align-self: start;
  height: 100vh; min-height: 640px;
  overflow: hidden;
  display: flex; flex-direction: column;
  padding: 30px 44px 0 48px;
  background:
    radial-gradient(circle at 82% 88%, rgba(233, 0, 63, .17), transparent 34%),
    radial-gradient(circle at 8% 12%, rgba(233, 0, 63, .1), transparent 30%),
    linear-gradient(158deg, #14181e 0%, #0a0d11 46%, #07090c 100%);
}
.auth-hero:before {
  content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image: radial-gradient(rgba(233, 0, 63, .14) 1px, transparent 1.4px);
  background-size: 26px 26px;
  mask-image: radial-gradient(circle at 25% 20%, #000, transparent 62%);
  -webkit-mask-image: radial-gradient(circle at 25% 20%, #000, transparent 62%);
}
.auth-brand { position: relative; z-index: 3; display: block; width: 172px; height: 46px; flex: none; }
.auth-brand img { width: 100%; height: 100%; object-fit: contain; object-position: left center; }

.auth-hero-content { position: relative; z-index: 3; max-width: 470px; margin-top: clamp(26px, 5.5vh, 64px); }
.auth-hero-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  color: #ff4d75; letter-spacing: 2.4px; font-size: 9.5px; font-weight: 800;
}
.auth-hero-kicker:before { content: ""; width: 18px; height: 2px; background: #e9003f; border-radius: 2px; }
.auth-hero h1 {
  font: 700 clamp(34px, 3.3vw, 47px)/1.04 'Space Grotesk', Manrope, sans-serif;
  letter-spacing: -1.8px; margin: 16px 0 14px;
}
.auth-hero h1 em { font-style: normal; color: #e9003f; }
.auth-hero-content > p { color: #98a0aa; font-size: 13px; line-height: 1.75; max-width: 400px; margin: 0; }

/* Özellik listesi */
.auth-features { list-style: none; padding: 0; margin: clamp(18px, 3.4vh, 34px) 0 0; display: grid; gap: clamp(10px, 1.8vh, 17px); }
.auth-features li { display: flex; align-items: center; gap: 13px; }
.auth-features li i {
  flex: none; width: 36px; height: 36px; border-radius: 10px;
  display: grid; place-items: center; font-style: normal;
  color: #ff4d75; background: rgba(233, 0, 63, .1);
  border: 1px solid rgba(233, 0, 63, .22);
}
.auth-features b { display: block; font-size: 12.5px; letter-spacing: .1px; }
.auth-features small { display: block; color: #7e8792; font-size: 10.5px; margin-top: 3px; line-height: 1.5; }

/* Mağaza rozetleri */
.store-badges { display: flex; gap: 11px; margin-top: clamp(20px, 3.8vh, 38px); position: relative; z-index: 3; }
.store-badge {
  display: inline-flex; border-radius: 10px; overflow: hidden;
  border: 1px solid #333a43; background: #000; transition: .18s;
}
.store-badge svg { display: block; height: 46px; width: auto; }
.store-badge:hover { transform: translateY(-2px); border-color: #545e69; box-shadow: 0 12px 28px rgba(0, 0, 0, .5); }

/* Puan satırı */
.auth-rating { display: flex; align-items: center; gap: 12px; margin-top: clamp(14px, 2.6vh, 24px); position: relative; z-index: 3; }
.auth-app-icon { width: 40px; height: 40px; border-radius: 10px; border: 1px solid #2b323b; }
.auth-rating b { display: block; font-size: 12.5px; letter-spacing: .2px; }
.auth-rating b i { font-style: normal; color: #ffb02e; letter-spacing: 1.5px; margin-left: 6px; }
.auth-rating small { display: block; color: #7e8792; font-size: 10px; margin-top: 3px; }

/* Telefon görselleri */
.auth-phones { position: absolute; z-index: 2; right: -34px; bottom: -70px; width: 470px; height: 560px; pointer-events: none; }
.auth-phones img {
  position: absolute; object-fit: cover; object-position: top;
  border-radius: 26px; border: 6px solid #14181d;
  background: #0a0d11; box-shadow: 0 40px 90px rgba(0, 0, 0, .65);
}
.auth-phones .phone-back {
  width: 208px; height: 440px; right: 218px; bottom: 66px;
  transform: rotate(-7deg); opacity: .82;
  border-color: #101419;
}
.auth-phones .phone-front { width: 236px; height: 500px; right: 26px; bottom: -10px; transform: rotate(5deg); }
.auth-hero:after {
  content: ""; position: absolute; z-index: 4; inset: auto 0 0 0; height: 110px; pointer-events: none;
  background: linear-gradient(transparent, rgba(7, 9, 12, .92));
}

/* ---------- SAĞ: form tarafı ---------- */
.auth-side {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 18px; padding: 44px 38px; background: #0a0d11;
}
.auth-card {
  width: min(430px, 100%);
  background: #0e1319; border: 1px solid #1d242c; border-radius: 18px;
  padding: 36px 34px 30px;
  box-shadow: 0 34px 90px rgba(0, 0, 0, .5);
}
.auth-kicker { color: #e9003f; letter-spacing: 2.2px; font-size: 9px; font-weight: 800; }
.auth-form h2 { font: 700 27px 'Space Grotesk', Manrope, sans-serif; letter-spacing: -.6px; margin: 9px 0 6px; }
.auth-form > div > p { color: #7f8791; font-size: 12px; margin: 0 0 24px; line-height: 1.6; }
.auth-form form, .signup-body { display: grid; gap: 15px; }
.auth-form label { display: grid; gap: 7px; color: #aeb5bd; font-size: 10.5px; font-weight: 700; letter-spacing: .3px; }
.auth-form input:not([type=checkbox]) {
  width: 100%; height: 46px;
  border: 1px solid #29313a; border-radius: 10px;
  background: #11161c; color: #fff; padding: 0 14px;
  font: 500 13px Manrope, sans-serif; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.auth-form input:not([type=checkbox]):hover { border-color: #343d47; }
.auth-form input:not([type=checkbox]):focus { border-color: #e9003f; box-shadow: 0 0 0 3px rgba(233, 0, 63, .1); }
.auth-form input:-webkit-autofill, .auth-form input:-webkit-autofill:hover, .auth-form input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #11161c inset; -webkit-text-fill-color: #fff; caret-color: #fff;
  border: 1px solid #29313a; transition: background-color 999999s ease-out;
}
.auth-form input:-webkit-autofill:focus { border-color: #e9003f; }
.auth-form ::placeholder { color: #5c646e; }

/* Şifre alanı + görünürlük düğmesi */
.password-field { position: relative; display: grid; }
.password-field input { padding-right: 46px !important; }
.password-reveal {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border: 0; border-radius: 8px;
  background: transparent; color: #6d7681; cursor: pointer;
  display: grid; place-items: center; transition: .15s;
}
.password-reveal:hover { color: #cfd5db; background: rgba(255, 255, 255, .05); }
html[data-theme="light"] .password-reveal:hover { color: #171c23; background: rgba(9, 14, 20, .06); }

.forgot { justify-self: end; color: #ff4d75; font-size: 10px; font-weight: 700; }
button.forgot { background: none; border: 0; padding: 0; cursor: pointer; }
button.forgot:hover { text-decoration: underline; }

.auth-submit {
  height: 47px; border: 0; border-radius: 10px; cursor: pointer;
  background: linear-gradient(180deg, #ff1a55, #d80039);
  color: #fff; font: 800 13px Manrope, sans-serif; letter-spacing: .3px;
  box-shadow: 0 10px 26px rgba(233, 0, 63, .28);
  transition: .18s;
}
.auth-submit:hover:not(:disabled) { filter: brightness(1.07); transform: translateY(-1px); }
.auth-submit:disabled { opacity: .55; cursor: default; box-shadow: none; }

.auth-error {
  padding: 11px 13px; border: 1px solid #6f1730; background: rgba(233, 0, 63, .08);
  color: #ff7896; border-radius: 9px; font-size: 11px; line-height: 1.5;
}
.field-error { font-size: 9.5px; color: #ff7896; font-weight: 600; }

.auth-switch { text-align: center; font-size: 11.5px; color: #7f8791; margin: 20px 0 0; }
.auth-switch a { color: #ff4d75; font-weight: 700; }
.auth-switch a:hover { text-decoration: underline; }
.guest-link {
  display: flex; align-items: center; justify-content: center;
  margin-top: 12px; height: 40px; border-radius: 9px;
  border: 1px dashed #333c46; color: #99a2ac; font-size: 11px; font-weight: 600;
  transition: .15s;
}
.guest-link:hover { border-color: #4a545f; color: #d6dbe0; }
html[data-theme="light"] .guest-link { border-color: #c6cfd8; color: #5d6774; }
html[data-theme="light"] .guest-link:hover { border-color: #9aa6b2; color: #171c23; }

/* ---------- Şifremi unuttum paneli ---------- */
.forgot-panel {
  margin: 2px 0 6px; padding: 15px; border: 1px solid #1c2229; border-radius: 12px;
  background: #0a0f14; display: grid; gap: 11px;
}
.forgot-panel label { display: grid; gap: 6px; font-size: 11px; color: #9aa3ad; }
.forgot-panel input { width: 100%; padding: 11px 13px; background: #070a0d; border: 1px solid #222a33; border-radius: 9px; color: #e7ecf2; font-size: 13px; }
.forgot-submit { margin-top: 0; }
.forgot-done { margin: 0; color: #4ade80; font-size: 12.5px; }

/* ---------- Adımlı kayıt sihirbazı ---------- */
.signup-steps { display: flex; align-items: center; gap: 0; margin: 4px 0 24px; }
.signup-steps .step { display: flex; align-items: center; gap: 8px; flex: none; }
.signup-steps .step i {
  width: 28px; height: 28px; border-radius: 50%; border: 1px solid #29313a; background: #11161c;
  display: grid; place-items: center; font-style: normal; font-size: 11px; font-weight: 800; color: #7f8791; transition: .2s;
}
.signup-steps .step small { font-size: 9px; font-weight: 700; color: #7f8791; white-space: nowrap; }
.signup-steps .step.on i { border-color: #e9003f; background: #e9003f; color: #fff; box-shadow: 0 0 0 4px rgba(233, 0, 63, .14); }
.signup-steps .step.on small { color: #fff; }
.signup-steps .step.done i { border-color: #e9003f; background: rgba(233, 0, 63, .12); color: #e9003f; }
.signup-steps .step.done small { color: #c6cbd1; }
.signup-steps .bar { flex: 1; height: 2px; background: #242b33; margin: 0 10px; border-radius: 2px; overflow: hidden; }
.signup-steps .bar b { display: block; height: 100%; width: 0; background: #e9003f; transition: width .25s; }
.signup-steps .bar.full b { width: 100%; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.terms { display: flex !important; align-items: center; gap: 9px; font-weight: 500 !important; font-size: 11px !important; line-height: 1.5; }
.terms input { accent-color: #e9003f; width: 15px; height: 15px; }
.signup-nav { display: flex; gap: 10px; margin-top: 6px; }
.signup-back { flex: 0 0 auto; height: 47px; padding: 0 20px; border: 1px solid #29313a; background: #11161c; color: #c6cbd1; border-radius: 10px; font-weight: 700; cursor: pointer; }
.signup-back:hover { border-color: #3a434d; }
.signup-nav .auth-submit { flex: 1; }
.signup-summary { display: grid; gap: 9px; background: #11161c; border: 1px solid #232b33; border-radius: 11px; padding: 15px; }
.signup-summary div { display: flex; justify-content: space-between; font-size: 11px; }
.signup-summary small { color: #7f8791; font-weight: 700; }
.signup-summary b { color: #fff; max-width: 60%; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Duyarlılık ---------- */
@media (max-width: 1320px) {
  .auth-phones { right: -60px; width: 430px; }
  .auth-phones .phone-front { width: 216px; height: 458px; }
  .auth-phones .phone-back { width: 190px; height: 402px; right: 208px; }
}
@media (max-width: 1120px) {
  .auth-phones .phone-back { display: none; }
  .auth-phones { width: 300px; right: -46px; }
}
@media (max-width: 940px) {
  .auth-page { grid-template-columns: 1fr; }
  .auth-hero { position: relative; height: auto; min-height: 0; padding: 24px 26px 30px; }
  .auth-hero:after, .auth-phones { display: none; }
  .auth-hero-content { margin-top: 22px; max-width: 560px; }
  .auth-hero h1 { font-size: 31px; letter-spacing: -1.2px; margin: 12px 0 10px; }
  .auth-features { display: none; }
  .store-badges { margin-top: 20px; }
  .auth-rating { margin-top: 14px; }
  .auth-side { padding: 30px 18px 44px; }
  .auth-card { padding: 28px 22px 24px; }
}
@media (max-width: 560px) {
  .auth-brand { width: 148px; height: 40px; }
  .store-badge svg { height: 42px; }
  .field-row { grid-template-columns: 1fr; }
}
