/* Página pública / login — inspirado em MenuIA (chatbot.menuia.com/login) */

.guest-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #080512;
  background-image:
    radial-gradient(ellipse 90% 70% at 50% -5%, rgba(139, 92, 246, 0.35), transparent 55%),
    radial-gradient(ellipse 60% 50% at 80% 100%, rgba(99, 102, 241, 0.18), transparent 50%),
    radial-gradient(ellipse 50% 40% at 10% 90%, rgba(168, 85, 247, 0.12), transparent 45%),
    linear-gradient(180deg, #0c0618 0%, #080512 100%);
  color: #f4f0ff;
}

[data-theme="light"] .guest-shell {
  background: #f5f3ff;
  background-image:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(139, 92, 246, 0.15), transparent 55%),
    linear-gradient(180deg, #faf8ff 0%, #ede9fe 100%);
  color: #1e1b4b;
}

.guest-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  gap: 1rem;
}

.guest-brand {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(135deg, #fff 0%, #ddd6fe 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="light"] .guest-brand {
  background: linear-gradient(135deg, #5b21b6 0%, #7c3aed 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.guest-nav {
  display: none;
  align-items: center;
  gap: 1.75rem;
  font-size: 0.92rem;
}

@media (min-width: 768px) {
  .guest-nav { display: flex; }
}

.guest-nav a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
}

.guest-nav a:hover {
  color: #fff;
  text-decoration: none;
}

[data-theme="light"] .guest-nav a {
  color: #64748b;
}

[data-theme="light"] .guest-nav a:hover {
  color: #5b21b6;
}

.guest-header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.guest-header-actions .theme-toggle {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.85);
}

[data-theme="light"] .guest-header-actions .theme-toggle {
  border-color: #ddd6fe;
  background: #fff;
  color: #64748b;
}

.guest-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem 2.5rem;
}

.guest-auth-card {
  width: 100%;
  max-width: 440px;
  padding: 2.25rem 2rem 2rem;
  border-radius: 20px;
  background: rgba(22, 14, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 0 0 1px rgba(139, 92, 246, 0.08),
    0 24px 64px rgba(0, 0, 0, 0.45),
    0 0 80px rgba(139, 92, 246, 0.08);
  backdrop-filter: blur(12px);
}

[data-theme="light"] .guest-auth-card {
  background: #fff;
  border-color: #e9e5ff;
  box-shadow: 0 20px 50px rgba(91, 33, 182, 0.1);
}

.guest-auth-card .guest-brand {
  display: block;
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.guest-auth-card h1 {
  margin: 0 0 0.35rem;
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-align: center;
  color: #fff;
}

[data-theme="light"] .guest-auth-card h1 {
  color: #1e1b4b;
}

.guest-auth-card .guest-subtitle {
  margin: 0 0 1.75rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.95rem;
}

[data-theme="light"] .guest-auth-card .guest-subtitle {
  color: #64748b;
}

.guest-auth-card .guest-hint {
  margin: 0 0 1.25rem;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  font-size: 0.82rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.65);
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.2);
}

[data-theme="light"] .guest-auth-card .guest-hint {
  color: #5b21b6;
  background: #f5f3ff;
  border-color: #ddd6fe;
}

.guest-field {
  margin-bottom: 1.1rem;
}

.guest-field label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
}

[data-theme="light"] .guest-field label {
  color: #334155;
}

.guest-input-wrap {
  position: relative;
}

.guest-input-wrap svg {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  width: 18px !important;
  height: 18px !important;
  max-width: 18px;
  max-height: 18px;
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.35);
  pointer-events: none;
}

[data-theme="light"] .guest-input-wrap svg {
  color: #94a3b8;
}

.guest-input-wrap input {
  width: 100%;
  padding: 0.72rem 0.85rem 0.72rem 2.65rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font: inherit;
  font-size: 0.95rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

[data-theme="light"] .guest-input-wrap input {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #0f172a;
}

.guest-input-wrap input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

[data-theme="light"] .guest-input-wrap input::placeholder {
  color: #94a3b8;
}

.guest-input-wrap input:focus {
  outline: none;
  border-color: rgba(167, 139, 250, 0.6);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

[data-theme="light"] .guest-input-wrap input:focus {
  background: #fff;
  border-color: #8b5cf6;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

.guest-auth-card .alert-err {
  margin-bottom: 1rem;
  border-radius: 10px;
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.25);
  color: #fecaca;
  font-size: 0.88rem;
}

[data-theme="light"] .guest-auth-card .alert-err {
  color: #991b1b;
  background: #fef2f2;
}

.btn-guest-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.78rem 1.25rem;
  border: none;
  border-radius: 12px;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, #9333ea 0%, #7c3aed 45%, #6366f1 100%);
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.45);
  transition: transform 0.12s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.btn-guest-submit:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(124, 58, 237, 0.5);
}

.btn-guest-submit:active {
  transform: translateY(0);
}

.btn-guest-submit svg {
  width: 18px;
  height: 18px;
}

.guest-footer {
  padding: 1.5rem 1rem 2rem;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

[data-theme="light"] .guest-footer {
  color: #64748b;
  border-top-color: #e9e5ff;
}

.guest-footer p {
  margin: 0 0 0.35rem;
}

.guest-footer strong {
  color: rgba(255, 255, 255, 0.65);
  font-weight: 600;
}

[data-theme="light"] .guest-footer strong {
  color: #5b21b6;
}
