/* ===== Auth Page ===== */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.auth-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.auth-bg .hero-orb-1 {
  width: 400px; height: 400px;
  top: 10%; left: 20%;
}
.auth-bg .hero-orb-2 {
  width: 300px; height: 300px;
  bottom: 10%; right: 15%;
}

.auth-card {
  position: relative;
  z-index: 1;
  background: var(--bg-surface);
  border: var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 40px 36px;
  width: 420px;
  max-width: 100%;
  box-shadow: var(--shadow-xl);
  text-align: center;
}

.auth-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
}

.auth-subtitle {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 32px;
}

.auth-form { text-align: left; }

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

.auth-form .input {
  margin-bottom: 0;
}

.auth-error {
  color: var(--error);
  font-size: 13px;
  margin-top: 12px;
  display: none;
  text-align: center;
}
.auth-error.visible { display: block; }

/* ===== Divider "или" ===== */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}
.auth-divider span {
  color: var(--text-muted);
  font-size: 13px;
  white-space: nowrap;
}

/* ===== Telegram widget ===== */
#telegramLoginWidget {
  display: flex;
  justify-content: center;
  min-height: 44px;
  align-items: center;
}

/* ===== Email step 2 ===== */
.auth-step2-info {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  text-align: center;
}
.auth-step2-info strong {
  color: var(--text);
}

/* Code digit inputs */
.code-inputs {
  display: flex;
  justify-content: center;
  gap: 8px;
}
input.code-digit {
  width: 46px;
  height: 52px;
  min-width: 46px;
  padding: 8px 4px;
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  font-family: var(--font);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  color: var(--text);
  -webkit-text-fill-color: var(--text);
  opacity: 1;
  -webkit-appearance: none;
  outline: none;
  transition: all var(--transition);
  caret-color: var(--accent);
}
input.code-digit:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

/* Timer & back */
.auth-timer {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 12px;
}
.auth-back {
  display: block;
  margin: 12px auto 0;
}

.auth-hint {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 20px;
  line-height: 1.4;
}

@media (max-width: 480px) {
  .auth-card { padding: 32px 24px; }
  input.code-digit { width: 40px; height: 46px; font-size: 20px; padding: 6px 2px; }
}
