/* ==========================================================================
   Giriş Yap — OTP ile giriş, iki sütunlu (form + soyut mor görsel) düzen.
   Sağdaki panel gerçek bir fotoğraf değil, CSS ile üretilmiş gradyan/blob
   kompozisyonu (aşağıda .ghero__visual*). Tasarım önizlemesidir; gerçek
   SMS/OTP gönderimi ve panel oturumu ayrıca bağlanacak (bkz. main.js,
   initOtpLogin).
   ========================================================================== */

.ghero {
  position: relative;
  display: flex;
  min-height: 100dvh;
}

/* --- anasayfaya dön (menü/footer bu sayfada basılmıyor, bkz. header.php) -- */
.ghero__homeLink {
  position: fixed;
  left: 28px;
  bottom: 24px;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  text-decoration: none;
  transition: color .2s ease;
}

.ghero__homeLink:hover {
  color: var(--indigo);
}

.ghero__homeLink svg {
  width: 16px;
  height: 16px;
  flex: none;
}

/* --- sol: form ------------------------------------------------------------ */
.ghero__form {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 32px;
}

.ghero__formInner {
  width: 100%;
  max-width: 400px;
}

.ghero__logo-link {
  display: inline-block;
  margin-bottom: 48px;
}

.ghero__logo {
  display: block;
  height: 48px;
  width: auto;
}

.ghero__view[hidden] {
  display: none;
}

.ghero__back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: none;
  background: var(--bg-tint);
  border-radius: 50%;
  color: var(--muted);
  cursor: pointer;
  margin-bottom: 18px;
}

.ghero__back svg {
  width: 16px;
  height: 16px;
}

.ghero__title {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 10px;
}

.ghero__lede {
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0 0 28px;
}

.ghero__formEl {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.ghero__field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
}

.ghero__phone {
  display: flex;
  align-items: center;
  background: var(--bg-tint);
  border: 1.5px solid var(--line-3);
  border-radius: var(--r-sm);
  padding-left: 14px;
  transition: border-color .15s ease;
}

.ghero__phone:focus-within {
  border-color: var(--indigo);
}

.ghero__phone-prefix {
  font-size: 15px;
  font-weight: 700;
  color: var(--muted);
  padding-right: 10px;
  border-right: 1.5px solid var(--line-3);
  flex: none;
}

.ghero__phone input {
  flex: 1;
  min-width: 0;
  font: inherit;
  font-weight: 500;
  font-size: 15px;
  color: var(--ink);
  border: none;
  background: none;
  outline: none;
  padding: 13px 14px 13px 10px;
}

.ghero__otpRow {
  display: flex;
  gap: 10px;
}

.ghero__otpBox {
  width: 100%;
  aspect-ratio: 1;
  text-align: center;
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
  background: var(--bg-tint);
  border: 1.5px solid var(--line-3);
  border-radius: var(--r-sm);
  outline: none;
  transition: border-color .15s ease;
}

.ghero__otpBox:focus {
  border-color: var(--indigo);
}

.ghero__submit {
  background: var(--indigo);
  color: var(--white);
  border: none;
  border-radius: var(--r-pill);
  padding: 15px 24px;
  font-size: 15.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s ease;
}

.ghero__submit:hover {
  background: var(--pink-deep);
}

.ghero__terms {
  margin: 22px 0 0;
  font-size: 13.5px;
  color: var(--muted);
  text-align: center;
}

.ghero__terms a {
  color: var(--indigo);
  font-weight: 700;
  text-decoration: none;
}

.ghero__terms a:hover {
  text-decoration: underline;
}

.ghero__resend {
  border: none;
  background: none;
  padding: 0;
  color: var(--indigo);
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
}

.ghero__resend:disabled {
  color: var(--muted-2);
  cursor: default;
}

.ghero__successIcon {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #DCFCE7;
  color: #16A34A;
  border-radius: 50%;
  margin-bottom: 20px;
}

.ghero__successIcon svg {
  width: 26px;
  height: 26px;
}

/* --- sağ: soyut mor görsel -------------------------------------------------
   Fotoğraf yok; markanın indigo/pembe paletiyle katmanlı radial-gradient
   "blob"lar ve ince bir grid dokusu. */
.ghero__visual {
  position: relative;
  flex: 1;
  display: none;
  overflow: hidden;
  background: linear-gradient(160deg, #1B1440 0%, #2E259C 55%, #6C63FF 100%);
}

.ghero__visual-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .55;
}

.ghero__visual-blob--1 {
  width: 420px;
  height: 420px;
  top: -80px;
  right: -100px;
  background: #9A93FF;
}

.ghero__visual-blob--2 {
  width: 360px;
  height: 360px;
  bottom: -100px;
  left: -80px;
  background: var(--pink-deep);
}

.ghero__visual-blob--3 {
  width: 260px;
  height: 260px;
  bottom: 20%;
  right: 8%;
  background: #FF6FC1;
  opacity: .35;
}

.ghero__visual-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, #000 0%, transparent 75%);
}

.ghero__visual-quote {
  position: absolute;
  left: 48px;
  right: 48px;
  bottom: 56px;
}

.ghero__visual-quote p {
  font-size: 21px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, .92);
  max-width: 420px;
  margin: 0;
  text-wrap: pretty;
}

@media (min-width: 861px) {
  .ghero__visual {
    display: block;
  }
}

@media (max-width: 480px) {
  .ghero__otpRow {
    gap: 7px;
  }

  .ghero__title {
    font-size: 26px;
  }
}
