/* CronBot — login / cadastro (paleta do tema public/template) */

:root {
  /* alinhado com `home-modern.css` */
  --auth-page-bg: #070605; /* --bg */
  --auth-card: #12100e; /* --bg3 */
  --auth-border: rgba(255, 255, 255, 0.07); /* --border */
  --auth-border-focus: rgba(251, 146, 60, 0.28); /* --accent-bd */
  --auth-text: #f0ebe6; /* --t1 */
  --auth-text-soft: rgba(240, 235, 230, 0.88);
  --auth-muted: #9c9188; /* --t2 */
  --auth-input-bg: #0c0a08; /* --bg2 */
  --auth-accent: #fb923c; /* --accent */
  --auth-accent-hover: #f97316; /* --accent2 */
  --auth-accent-mid: #fdba74; /* --accent3 */
  --auth-accent-soft: rgba(251, 146, 60, 0.09); /* --accent-dim */
  --auth-accent-border: rgba(251, 146, 60, 0.28); /* --accent-bd */
  --auth-error: #dc2626;
  --auth-shadow: 0 10px 40px rgba(0, 0, 0, 0.45), 0 2px 10px rgba(0, 0, 0, 0.25);
}

.auth-cronbot-body {
  margin: 0;
  min-height: 100vh;
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  background: radial-gradient(ellipse 80% 55% at 50% -10%, rgba(249, 115, 22, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 40% at 80% 60%, rgba(251, 146, 60, 0.08), transparent 50%),
    var(--auth-page-bg);
  color: var(--auth-text);
  -webkit-font-smoothing: antialiased;
}

/* Sem overlay escuro da landing — mesmo “ar” do conteúdo branco do dashboard */
.auth-cronbot-body::before {
  display: none;
}

.auth-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem 3rem;
  box-sizing: border-box;
}

.auth-brand {
  text-align: center;
  margin-bottom: 1.75rem;
}

.auth-brand a {
  display: inline-block;
  text-decoration: none;
}

.auth-logo {
  height: 52px;
  width: auto;
  max-width: min(320px, 85vw);
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  padding: 2rem 1.75rem 1.75rem;
  background: var(--auth-card);
  border: 1px solid var(--auth-border);
  border-radius: 14px;
  box-shadow: var(--auth-shadow);
}

.auth-page-header {
  margin-bottom: 1.5rem;
  text-align: center;
}

.auth-title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--auth-text);
}

.auth-subtitle {
  margin: 0.45rem 0 0;
  font-size: 0.875rem;
  color: var(--auth-muted);
  line-height: 1.5;
}

/* Labels */
.auth-page label.block {
  color: var(--auth-muted) !important;
  font-size: 0.65rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Inputs */
.auth-page input[type="email"],
.auth-page input[type="text"],
.auth-page input[type="password"] {
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.65rem 0.85rem;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--auth-text) !important;
  background: var(--auth-input-bg) !important;
  border: 1px solid var(--auth-border) !important;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.auth-page input:focus {
  border-color: var(--auth-accent) !important;
  box-shadow: 0 0 0 3px var(--auth-border-focus);
}

.auth-page input::placeholder {
  color: rgba(148, 163, 184, 0.8);
}

.auth-page .text-red-600,
.auth-page .dark\:text-red-400 {
  color: var(--auth-error) !important;
  font-size: 0.8rem;
}

/* Checkbox */
.auth-page input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  border-radius: 4px;
  border: 1px solid var(--auth-border);
  background: var(--auth-input-bg);
  accent-color: var(--auth-accent-hover);
  cursor: pointer;
}

.auth-page label.inline-flex span {
  color: var(--auth-muted) !important;
  font-size: 0.8125rem !important;
}

/* Session status */
.auth-page [x-auth-session-status],
.auth-page .mb-4 {
  margin-bottom: 1rem;
}

.auth-page .text-sm.text-green-600,
.auth-page .text-green-600 {
  color: var(--auth-text-soft) !important;
  font-size: 0.8125rem;
  padding: 0.65rem 0.75rem;
  background: var(--auth-accent-soft);
  border: 1px solid var(--auth-accent-border);
  border-radius: 8px;
}

/* Links secundários (esqueci senha, etc.) */
.auth-page a:not(.auth-btn-primary) {
  color: var(--auth-muted);
  text-decoration: none;
  font-size: 0.8125rem;
  transition: color 0.15s;
}

.auth-page a:not(.auth-btn-primary):hover {
  color: var(--auth-accent-hover);
  text-decoration: underline;
}

.auth-row-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

/* Botão principal = verde painel (KPI / ações) */
.auth-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffffff !important;
  background: var(--auth-accent) !important;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(238, 66, 18, 0.18);
  transition: background 0.15s, box-shadow 0.15s;
}

.auth-btn-primary:hover {
  background: var(--auth-accent-hover) !important;
  box-shadow: 0 4px 14px rgba(238, 66, 18, 0.28);
}

.auth-footer {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--auth-border);
  text-align: center;
}

.auth-footer p {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--auth-muted);
}

.auth-footer a {
  color: var(--auth-accent-hover);
  font-weight: 600;
  text-decoration: none;
}

.auth-footer a:hover {
  text-decoration: underline;
  color: var(--auth-accent-hover);
}

.auth-back-site {
  margin-top: 2rem;
  text-align: center;
}

.auth-back-site a {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--auth-muted);
  text-decoration: none;
  text-transform: uppercase;
}

.auth-back-site a:hover {
  color: var(--auth-accent-hover);
}

.auth-page button[type="submit"].auth-btn-primary {
  min-width: 7rem;
}
