/* XLBot — Minimal auth (login / register) */

.auth-minimal .aurora-bg,
.auth-minimal .scanlines,
.auth-minimal .grid-bg {
  opacity: 0.35;
}

.auth-minimal .auth-split {
  min-height: 100vh;
  min-height: 100dvh;
}

.auth-minimal .auth-form-side {
  flex-direction: column;
  justify-content: flex-start;
  padding: max(16px, env(safe-area-inset-top)) 20px max(24px, env(safe-area-inset-bottom));
  gap: 0;
  background: var(--bg-deep, #0a0f1a);
}

.auth-mobile-head {
  display: none;
  width: 100%;
  max-width: 420px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding: 4px 0;
}

.auth-mobile-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.auth-mobile-logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--cyan) 14%, transparent);
  color: var(--cyan);
  font-size: 0.95rem;
}

.auth-mobile-logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.auth-minimal .auth-mobile-head {
  justify-content: center;
}

.auth-minimal .auth-form-side .auth-card {
  max-width: 420px;
  padding: 32px 28px !important;
  border-radius: 20px !important;
  border: 1px solid color-mix(in srgb, var(--border) 90%, transparent) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12) !important;
  background: var(--bg-card) !important;
}

.auth-minimal .auth-form-side .auth-card::before {
  display: none;
}

.auth-minimal .auth-card-icon {
  display: none;
}

.auth-minimal .auth-form-side .auth-card h2 {
  font-size: 1.45rem !important;
  font-weight: 800;
  margin-bottom: 4px;
  letter-spacing: -0.03em;
  text-align: center;
}

.auth-minimal .auth-sub {
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-bottom: 22px;
  line-height: 1.45;
  text-align: center;
}

.auth-form-clean .form-group {
  margin-bottom: 12px;
}

.auth-form-clean .form-group label {
  display: none;
}

.auth-form-clean input,
.auth-form-clean select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px !important;
  border-radius: 12px !important;
  border: 1px solid var(--border) !important;
  background: var(--bg-input, var(--bg-panel)) !important;
  color: var(--text) !important;
  font-size: 0.9rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-form-clean input:focus,
.auth-form-clean select:focus {
  outline: none;
  border-color: var(--cyan) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--cyan) 12%, transparent);
}

.auth-form-clean .input-icon-wrap input {
  padding-right: 44px !important;
}

.auth-form-clean .password-toggle {
  right: 10px;
}

.auth-submit-btn {
  margin-top: 8px;
  min-height: 48px;
  border-radius: 12px !important;
  font-size: 0.92rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.01em;
  box-shadow: none !important;
}

.auth-telegram-cta {
  margin-top: 18px;
  padding-top: 2px;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--text-dim);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: color-mix(in srgb, var(--border) 85%, transparent);
}

.auth-divider span {
  flex-shrink: 0;
}

.auth-telegram-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, #229ED9, #1a8bc4);
  color: #fff !important;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none !important;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 14px rgba(34, 158, 217, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.auth-telegram-btn i {
  font-size: 1.15rem;
}

.auth-telegram-btn:hover {
  filter: brightness(1.06);
  box-shadow: 0 6px 18px rgba(34, 158, 217, 0.38);
  transform: translateY(-1px);
}

html[data-theme="vivid"] .auth-telegram-btn {
  box-shadow: 0 4px 14px rgba(34, 158, 217, 0.22);
}

.auth-telegram-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.auth-telegram-btn-secondary {
  background: transparent !important;
  color: #229ED9 !important;
  border: 1px solid rgba(34, 158, 217, 0.45) !important;
  box-shadow: none !important;
}

.auth-telegram-btn-secondary:hover {
  background: rgba(34, 158, 217, 0.08) !important;
  transform: none !important;
}

.auth-channel-gate a {
  color: var(--cyan, #229ED9);
  font-weight: 600;
}

.auth-minimal .auth-link {
  font-size: 0.8rem;
  text-align: center;
  margin-top: 14px;
  color: var(--text-dim);
}

.auth-minimal .auth-link a {
  color: var(--cyan);
  font-weight: 600;
  text-decoration: none;
}

.auth-minimal .register-phone-row {
  grid-template-columns: 40px 78px 1fr !important;
  gap: 6px !important;
}

.auth-minimal .country-flag-display {
  width: 40px;
  height: 48px;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.auth-minimal .sponsor-info {
  margin-top: 8px;
  font-size: 0.78rem;
}

/* Vivid theme — clean white auth */
html[data-theme="vivid"].auth-minimal .auth-form-side,
html[data-theme="vivid"] .auth-minimal .auth-form-side {
  background: #fafafa;
}

html[data-theme="vivid"] .auth-minimal .auth-form-side .auth-card {
  background: #ffffff !important;
  border-color: #e8e8e8 !important;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06) !important;
}

html[data-theme="vivid"] .auth-minimal .auth-form-clean input,
html[data-theme="vivid"] .auth-minimal .auth-form-clean select {
  background: #f8f8f8 !important;
  border-color: #e5e5e5 !important;
}

html[data-theme="vivid"] .auth-minimal .auth-mobile-logo-icon {
  background: rgba(255, 128, 0, 0.12);
  color: #e67300;
}

html[data-theme="vivid"] .auth-minimal .auth-link a {
  color: #e67300;
}

/* Desktop — vertically center login/register form */
@media (min-width: 1025px) {
  .auth-minimal .auth-form-side {
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 40px clamp(32px, 5vw, 60px);
  }

  .auth-minimal .auth-mobile-head {
    display: none;
  }

  .auth-minimal .auth-form-side .auth-card {
    margin: 0 auto;
  }

  .auth-minimal .register-card {
    max-width: 460px !important;
  }
}

/* Mobile */
@media (max-width: 1024px) {
  .auth-mobile-head {
    display: flex;
  }

  .auth-minimal .auth-form-side {
    min-height: 100vh;
    min-height: 100dvh;
    justify-content: center;
    padding-left: 16px;
    padding-right: 16px;
  }

  .auth-minimal .auth-form-side .auth-card {
    padding: 24px 20px !important;
    border-radius: 16px !important;
    box-shadow: none !important;
    border: 1px solid color-mix(in srgb, var(--border) 70%, transparent) !important;
  }

  .auth-minimal .auth-form-side .auth-card h2 {
    font-size: 1.3rem !important;
  }

  .auth-minimal .register-card {
    max-width: 100% !important;
  }
}

@media (max-width: 380px) {
  .auth-minimal .register-phone-row {
    grid-template-columns: 36px 72px 1fr !important;
  }
}