:root{
  --login-radius: 22px;
  --login-shadow: 0 30px 60px rgba(0,106,78,0.18), 0 12px 28px rgba(0,0,0,0.06);
  --login-surface: #ffffff;
  --login-text: #08201a;
  --login-border: rgba(0,106,78,0.22);
  --login-muted-bg: #f4fbf7;
  --login-accent: #006a4e;
  --login-on-accent: #ffffff;
  font-family: "Noto Sans Bengali", "Poppins", system-ui, -apple-system, sans-serif;
}

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&family=Playfair+Display:wght@700;800&family=Noto+Sans+Bengali:wght@400;600;700;800&display=swap');

*, *::before, *::after { box-sizing: border-box; }

/* ── Body — тёплый кремовый фон ── */
body {
  margin: 0;
  min-height: 100vh;
  background-color: #f4fbf7;
  background-image:
    radial-gradient(ellipse 110% 70% at 50% -10%, rgba(244,42,65,0.12), transparent 60%),
    radial-gradient(ellipse 80% 60% at 100% 110%, rgba(0,106,78,0.16), transparent 60%),
    radial-gradient(ellipse 70% 50% at 0% 80%, rgba(0,77,56,0.08), transparent 60%);
  color: #08201a;
}

/* ── Backdrop ── */
:root {
  /* =====================================================
     ЗАТЕМНЕНИЕ ЗА ОКНОМ ВХОДА
     Меняй только это значение: 0 = нет, 0.5 = среднее
  ===================================================== */
  --overlay-dim: 0;
}

.login-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 8, 2, var(--overlay-dim));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 50;
  overflow-y: auto;
  animation: lc-overlay-in 0.35s ease both;
}
@keyframes lc-overlay-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── Card ── */
.login-card {
  width: min(420px, 88%);
  border-radius: var(--login-radius);
  background: #ffffff;
  color: #08201a;
  box-shadow: var(--login-shadow);
  padding: 36px 30px 28px;
  border: 1px solid rgba(0,106,78,0.18);
  position: relative;
  overflow: hidden;
  animation: lc-card-pop 0.45s cubic-bezier(0.34,1.36,0.64,1) both;
  font-family: "Poppins", sans-serif;
}
@keyframes lc-card-pop {
  from { opacity: 0; transform: translateY(20px) scale(0.94); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Цветная полоска сверху */
.login-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: linear-gradient(90deg, #006a4e, #f42a41, #004d38);
}

/* Декоративный кружок в углу */
.login-card::after {
  content: "";
  position: absolute;
  top: 20px; right: 20px;
  width: 70px; height: 70px;
  background:
    radial-gradient(circle at center, transparent 12px, rgba(244,42,65,0.12) 13px, transparent 15px),
    radial-gradient(circle at center, transparent 22px, rgba(0,106,78,0.10) 23px, transparent 25px);
  border-radius: 50%;
  pointer-events: none;
}

/* ── Заголовки ── */
.login-card h2 {
  margin: 0 0 .25rem;
  font-family: "Playfair Display", serif;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
  background: linear-gradient(90deg, #006a4e, #004d38);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ── Подзаголовок ── */
.login-muted {
  margin: 0 0 1.4rem;
  font-size: .93rem;
  color: #2e6655;
  line-height: 1.7;
}

/* ── Поля формы ── */
.login-field {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  margin-bottom: 1rem;
}
.login-field label {
  font-size: .78rem;
  font-weight: 600;
  color: #2e6655;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ── Строка с телефоном ── */
.login-phone-row {
  display: flex;
  gap: .5rem;
  align-items: stretch;
}
.login-country {
  display: flex;
  align-items: center;
  gap: .35rem;
  padding: 0 .85rem;
  border-radius: 12px;
  border: 1px solid rgba(0,106,78,0.22);
  background: #e6f7ef;
  font-weight: 700;
  color: #08201a;
  white-space: nowrap;
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
}
.login-phone-row input {
  flex: 1;
  min-width: 0;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid rgba(0,106,78,0.22);
  background: #f4fbf7;
  font-size: 1rem;
  font-family: "Noto Sans Bengali", "Poppins", sans-serif;
  color: #08201a;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
}
.login-phone-row input:focus-visible,
.login-phone-row input:focus {
  border-color: #006a4e;
  box-shadow: 0 0 0 3px rgba(0,106,78,0.16);
  background: #ffffff;
  outline: none;
}
.login-phone-row input::placeholder { color: #80b898; }

/* ── Кнопки ── */
.login-actions {
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
  margin-top: .25rem;
}
.login-actions button {
  flex: 1;
  min-width: 120px;
  padding: 15px 20px;
  border-radius: 999px;
  border: none;
  font-weight: 700;
  font-size: 1rem;
  font-family: "Poppins", sans-serif;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: filter 0.18s, box-shadow 0.18s, transform 0.12s;
}
.login-actions button:disabled {
  opacity: .55;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}
.login-primary {
  background: linear-gradient(120deg, #006a4e, #004d38);
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  box-shadow: 0 8px 22px rgba(0,106,78,0.35);
}
.login-primary:hover:not(:disabled) {
  filter: brightness(1.06);
  box-shadow: 0 12px 28px rgba(0,106,78,0.45);
}
.login-primary:active:not(:disabled) { transform: scale(0.98); }

.login-ghost {
  background: transparent;
  color: #2e6655 !important;
  border: 1px solid rgba(0,106,78,0.30) !important;
}
.login-ghost:hover:not(:disabled) {
  background: rgba(244,42,65,0.06);
  color: #08201a !important;
}

/* ── Ошибка ── */
.login-error {
  margin: 0 0 1rem;
  padding: 11px 13px;
  border-radius: 12px;
  background: rgba(244,42,65,0.08);
  color: #8b001a;
  border: 1px solid rgba(244,42,65,0.30);
  font-size: .88rem;
}

/* ── Загрузка ── */
.login-loading { text-align: center; padding: 12px 0; color: #2e6655; font-size: .92rem; }
.login-spinner {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 3px solid rgba(0,106,78,0.18);
  border-top-color: #006a4e;
  border-right-color: #f42a41;
  margin: 0 auto 1rem;
  animation: login-spin .85s linear infinite;
}
@keyframes login-spin { to { transform: rotate(360deg); } }
.login-timer {
  font-variant-numeric: tabular-nums;
  font-size: 1.25rem;
  font-weight: 700;
  margin: .5rem 0 0;
  color: #006a4e;
}

/* ── Успех ── */
.login-success { text-align: center; }
.login-success-icon { font-size: 2.5rem; margin-bottom: .25rem; }

/* ── Код ── */
.code-input {
  width: 100%;
  padding: 14px 18px;
  letter-spacing: .4em;
  text-align: center;
  font-size: 1.35rem;
  font-variant-numeric: tabular-nums;
  font-family: "Poppins", sans-serif;
  color: #08201a;
  background: #f4fbf7;
  border: 1px solid rgba(0,106,78,0.22);
  border-radius: 12px;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
  margin-bottom: 14px;
}
.code-input:focus {
  border-color: #006a4e;
  box-shadow: 0 0 0 3px rgba(0,106,78,0.16);
  background: #ffffff;
}
.code-input::placeholder { color: #80b898; letter-spacing: .35em; }

/* ── TOS строка ── */
.login-tos,
.login-card > p:last-child {
  margin: 14px 0 0;
  font-size: .74rem;
  color: #2e6655;
  text-align: center;
  opacity: .85;
}
.login-tos a,
.login-card > p:last-child a {
  color: #006a4e;
  text-decoration: none;
  border-bottom: 1px dotted rgba(0,106,78,0.45);
}

/* ── Demo кнопка открытия (если есть) ── */
.demo-open-btn {
  margin-top: 1rem;
  padding: .65rem 1.1rem;
  border-radius: 999px;
  border: none;
  background: linear-gradient(120deg, #006a4e, #004d38);
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
  font-family: "Noto Sans Bengali", "Poppins", sans-serif;
}

/* ── Namaste greet + sign-hero block ── */
.sign-hero {
  margin: 0 0 22px;
  padding: 0 0 20px;
  border-bottom: 1px solid rgba(0,106,78,0.14);
}
.greet {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  color: #006a4e;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.sign-hero h2 {
  margin: 0 0 10px !important;
  -webkit-text-fill-color: transparent !important;
}
