@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600&display=swap");

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --accent: #2fd675;
  --accent-dark: #14532d;
  --accent-dim: #1c8a4c;
  --bg-card: #10130f;
  --surface: #171b16;
  --border: rgba(255, 255, 255, 0.08);
  --text-primary: #f2f5f3;
  --text-secondary: #9ca6a1;
  --text-muted: #62706a;
}

body {
  height: 100vh; /* fallback برای مرورگرهای قدیمی */
  height: 100dvh; /* مرورگرهای مدرن، حل مشکل نوار آدرس موبایل */
}
.auth-body {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #05140c;
  font-family: "Inter", sans-serif;
}

.phone {
  width: 100%;
  max-width: 420px;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  position: relative;
  overflow: hidden;
}

/* ===== بخش عکس بالا ===== */
.hero {
  position: relative;
  flex: 1;
  overflow: hidden;
  transition: transform 0.3s ease;
  transform-origin: center top;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform-origin: center center;
}

.hero-tint {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    var(--accent-dim) 0%,
    var(--accent-dark) 100%
  );
  mix-blend-mode: color;
  opacity: 0.85;
}

.hero-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, var(--bg-card) 100%);
}

.hero-text {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 90px;
  z-index: 2;
  transition: opacity 0.3s ease;
}

.hero-text p {
  font-family: "Space Grotesk", sans-serif;
  font-size: 26px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.3;
}

.hero-text strong {
  font-weight: 700;
}

.hero-greeting {
  position: absolute;
  left: 24px;
  right: 24px;
  top: 50px;
  z-index: 2;
  opacity: 0;
  pointer-events: none;
}

.hero-greeting h1 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--text-secondary);
  line-height: 1.15;
}

.hero-greeting h1.light {
  font-weight: 700;
  color: var(--text-primary);
}

.swipe-hint {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-primary);
  opacity: 0.85;
  transition: opacity 0.3s ease;
}

.swipe-hint svg {
  width: 22px;
  height: 22px;
  margin-top: -10px;
  animation: floatUp 1.6s ease-in-out infinite;
}

.swipe-hint svg:last-child {
  animation-delay: 0.2s;
}

@keyframes floatUp {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.4;
  }
  50% {
    transform: translateY(-4px);
    opacity: 1;
  }
}

/* ===== فرم لاگین (شیت کشویی) ===== */
.auth-sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  background: var(--bg-card);
  border-top-left-radius: 28px;
  border-top-right-radius: 28px;
  padding: 0 26px 32px;
  display: flex;
  flex-direction: column;
}

/* ناحیه‌ی لمسی بزرگ‌تر برای دستگیره (سوایپ راحت‌تر روی موبایل) */
.sheet-handle-zone {
  width: 100%;
  padding: 16px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: grab;
  touch-action: none;
  margin-bottom: 4px;
}

.sheet-handle-visual {
  width: 44px;
  height: 4px;
  background: var(--text-muted);
  border-radius: 999px;
  opacity: 0.5;
}

.sheet-content {
  opacity: 0;
  transition: opacity 0.25s ease;
}

.sheet-title {
  text-align: center;
  font-family: "Space Grotesk", sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 26px;
}

.field-label {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 6px;
  display: block;
}

.field-input {
  width: 100%;
  height: 48px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0 16px;
  color: var(--text-primary);
  font-family: "Inter", sans-serif;
  font-size: 14px;
  outline: none;
  margin-bottom: 18px;
  transition: border-color 0.2s ease;
}

.field-input::placeholder {
  color: var(--text-muted);
}

.field-input:focus {
  border-color: var(--accent-dim);
}

.password-wrap {
  position: relative;
}

.password-wrap .field-input {
  padding-left: 44px;
}

.toggle-eye {
  position: absolute;
  left: 14px;
  top: 12px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
}

.toggle-eye svg {
  width: 20px;
  height: 20px;
}

.forgot-link {
  align-self: flex-end;
  font-size: 12.5px;
  color: var(--accent);
  text-decoration: none;
  margin-bottom: 50px;
  margin-top: -8px;
}

.login-btn {
  width: 100%;
  height: 52px;
  background: var(--accent);
  border: none;
  border-radius: 14px;
  color: #05140c;
  font-family: "Space Grotesk", sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
  box-shadow: 0 8px 24px rgba(47, 214, 117, 0.25);
  margin-top: 15px;
}

.login-btn:hover {
  transform: translateY(-1px);
}

.signup-text {
  text-align: center;
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 22px;
}

.signup-text a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}
