.auth-container {
  max-width: 440px;
  margin: 80px auto;
  padding: 0 20px;
}

.auth-card {
  padding: 36px;
  border-radius: var(--radius-lg);
}

.auth-header {
  text-align: center;
  margin-bottom: 28px;
}

.auth-title {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.auth-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-main);
}

.form-input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--text-main);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.form-input:focus {
  outline: none;
  border-color: var(--accent-pink);
  box-shadow: 0 0 12px rgba(236, 72, 153, 0.25);
}

.auth-footer-text {
  text-align: center;
  margin-top: 24px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.auth-link {
  color: var(--accent-pink);
  font-weight: 600;
}

.auth-link:hover {
  text-decoration: underline;
}

.auth-legal-notice {
  margin-top: 16px;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--text-dim);
  text-align: center;
}

.auth-legal-notice a {
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition-fast);
}

.auth-legal-notice a:hover {
  color: var(--accent-pink);
}

/* Telegram Auth Styles */
.tg-auth-wrapper {
  margin-bottom: 20px;
}

.btn-telegram {
  background: linear-gradient(135deg, #2aabee 0%, #229ed9 100%);
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  transition: all var(--transition-normal);
  box-shadow: 0 4px 16px rgba(34, 158, 217, 0.25);
}

.btn-telegram:hover {
  background: linear-gradient(135deg, #3bb6f5 0%, #1c92cc 100%);
  box-shadow: 0 6px 24px rgba(34, 158, 217, 0.45);
  transform: translateY(-1px);
}

.tg-svg-icon {
  flex-shrink: 0;
}

.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 22px 0;
  color: var(--text-dim);
  font-size: 0.85rem;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border-subtle);
}

.auth-divider span {
  padding: 0 14px;
}

/* Telegram Modal Styles */
.tg-modal-card {
  max-width: 440px;
}

.tg-modal-icon-wrapper {
  position: relative;
  width: 76px;
  height: 76px;
  margin: 12px auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(34, 158, 217, 0.12);
  border-radius: 50%;
  color: #229ed9;
}

.tg-large-icon {
  font-size: 2.8rem;
  z-index: 2;
}

.tg-pulse-ring {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  border: 2px solid rgba(34, 158, 217, 0.5);
  animation: tgPulse 2s cubic-bezier(0.24, 0, 0.38, 1) infinite;
  pointer-events: none;
}

@keyframes tgPulse {
  0% {
    transform: scale(0.9);
    opacity: 0.8;
  }
  70% {
    transform: scale(1.35);
    opacity: 0;
  }
  100% {
    transform: scale(1.35);
    opacity: 0;
  }
}

.tg-modal-status {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-main);
}

.tg-modal-subtext {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 24px;
}

.tg-action-btn {
  margin-bottom: 18px;
}

.tg-timer-text {
  font-size: 0.85rem;
  font-family: var(--font-mono);
  color: var(--text-dim);
  margin-top: 14px;
}

.tg-dev-sim-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px;
  margin-top: 14px;
  text-align: center;
}

.tg-dev-label {
  display: block;
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-bottom: 8px;
}

/* OTP Verification Step Styles */
.otp-code-input {
  font-family: var(--font-mono);
  font-size: 2rem !important;
  font-weight: 800;
  letter-spacing: 10px;
  text-align: center;
  padding: 14px 16px;
  background: rgba(236, 72, 153, 0.06) !important;
  border-color: rgba(236, 72, 153, 0.35) !important;
}

.otp-code-input:focus {
  border-color: var(--accent-pink) !important;
  box-shadow: 0 0 20px rgba(236, 72, 153, 0.35) !important;
}

.otp-mail-icon-wrap {
  width: 68px;
  height: 68px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(236, 72, 153, 0.12);
  border-radius: 50%;
  border: 1px solid rgba(236, 72, 153, 0.25);
}

.btn-resend-link,
.btn-back-link {
  background: transparent;
  border: none;
  color: var(--accent-pink);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.btn-resend-link:disabled {
  color: var(--text-dim);
  cursor: not-allowed;
}

.btn-back-link {
  color: var(--text-muted);
}

.btn-back-link:hover {
  color: var(--text-main);
  text-decoration: underline;
}

/* Password Reset Styles */
.auth-forgot-link {
  font-size: 0.82rem;
  color: var(--accent-pink);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.auth-forgot-link:hover {
  color: #f472b6;
  text-decoration: underline;
}

.modal-card-reset {
  max-width: 460px;
}

.reset-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.5;
}

.reset-tabs {
  display: flex;
  background: rgba(255, 255, 255, 0.04);
  padding: 4px;
  border-radius: var(--radius-md);
  gap: 6px;
  margin-bottom: 20px;
  border: 1px solid var(--border-subtle);
}

.reset-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.reset-tab:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.03);
}

.reset-tab.active {
  color: #fff;
  background: rgba(236, 72, 153, 0.18);
  border: 1px solid rgba(236, 72, 153, 0.35);
  box-shadow: 0 2px 10px rgba(236, 72, 153, 0.2);
}

.reset-tg-info {
  text-align: center;
  padding: 16px 12px;
  background: rgba(34, 158, 217, 0.06);
  border-radius: var(--radius-md);
  border: 1px solid rgba(34, 158, 217, 0.18);
}



