﻿/* RadarSpy 6.10.1 — Estilos do Módulo de Autenticação, 2FA e Bootstrap */
:root {
  --auth-bg: #090d16;
  --auth-card: #131b2c;
  --auth-border: #23314a;
  --auth-border-focus: #38bdf8;
  --auth-txt: #f0f5ff;
  --auth-muted: #94a3b8;
  --auth-primary: #159784;
  --auth-primary-hover: #1cc5ad;
  --auth-cyan: #38bdf8;
  --auth-purple: #818cf8;
  --auth-danger: #f87171;
  --auth-danger-bg: #381a1f;
  --auth-success: #34d399;
  --auth-success-bg: #133327;
  --auth-warning: #fbbf24;
  --auth-warning-bg: #332812;
}

* {
  box-sizing: border-box;
}

body.auth-body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at 50% 20%, #152338 0%, #090d16 80%);
  color: var(--auth-txt);
  font: 15px/1.5 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 24px 16px;
}

.auth-container {
  width: 100%;
  max-width: 440px;
}

.auth-brand {
  text-align: center;
  margin-bottom: 24px;
}

.auth-brand h1 {
  font-size: 26px;
  font-weight: 800;
  margin: 0 0 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.auth-brand p {
  color: var(--auth-muted);
  font-size: 14px;
  margin: 0;
}

.auth-card {
  background: var(--auth-card);
  border: 1px solid var(--auth-border);
  border-radius: 16px;
  padding: 32px 28px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.05);
  transition: all 0.25s ease;
}

.auth-card-header {
  margin-bottom: 22px;
}

.auth-card-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 6px;
  color: #fff;
}

.auth-card-subtitle {
  font-size: 13.5px;
  color: var(--auth-muted);
  margin: 0;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.auth-field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--auth-muted);
}

.auth-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-input-wrap input,
.auth-field input,
.auth-field select {
  width: 100%;
  background: #0d1320;
  border: 1px solid var(--auth-border);
  border-radius: 10px;
  color: #fff;
  padding: 12px 14px;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-input-wrap input:focus,
.auth-field input:focus,
.auth-field select:focus {
  border-color: var(--auth-border-focus);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

.auth-eye-btn {
  position: absolute;
  right: 10px;
  background: transparent;
  border: 0;
  color: var(--auth-muted);
  cursor: pointer;
  padding: 6px;
  font-size: 16px;
  display: flex;
  align-items: center;
}

.auth-eye-btn:hover {
  color: #fff;
}

.auth-btn-primary {
  width: 100%;
  background: var(--auth-primary);
  color: #07221e;
  border: 1px solid #3fd3bc;
  border-radius: 10px;
  padding: 13px 18px;
  font-size: 15px;
  font-weight: 750;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 6px;
  box-shadow: 0 4px 14px rgba(21, 151, 132, 0.3);
  transition: all 0.2s ease;
}

.auth-btn-primary:hover:not(:disabled) {
  background: var(--auth-primary-hover);
  box-shadow: 0 6px 20px rgba(21, 151, 132, 0.45);
  transform: translateY(-1px);
}

.auth-btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.auth-btn-secondary {
  width: 100%;
  background: #172439;
  color: #cbd5e1;
  border: 1px solid var(--auth-border);
  border-radius: 10px;
  padding: 11px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 10px;
  transition: all 0.2s;
}

.auth-btn-secondary:hover {
  background: #23344f;
  color: #fff;
}

/* 2FA Pin Inputs */
.auth-totp-wrap {
  text-align: center;
  margin: 10px 0;
}

.auth-totp-input {
  letter-spacing: 8px;
  font-size: 26px;
  font-weight: 800;
  text-align: center;
  font-family: monospace, monospace;
  padding: 12px;
  background: #0d1320;
  border: 2px solid var(--auth-border);
  border-radius: 12px;
  color: var(--auth-cyan);
  width: 100%;
  max-width: 280px;
  outline: none;
}

.auth-totp-input:focus {
  border-color: var(--auth-cyan);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.25);
}

.auth-link-alt {
  display: inline-block;
  margin-top: 14px;
  font-size: 13px;
  color: var(--auth-cyan);
  text-decoration: none;
  cursor: pointer;
  background: transparent;
  border: 0;
}

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

/* Alertas e mensagens */
.auth-alert {
  padding: 12px 14px;
  border-radius: 9px;
  font-size: 13.5px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.4;
}

.auth-alert-error {
  background: var(--auth-danger-bg);
  border: 1px solid #7f2b38;
  color: #fca5a5;
}

.auth-alert-warning {
  background: var(--auth-warning-bg);
  border: 1px solid #856117;
  color: #fde68a;
}

.auth-alert-success {
  background: var(--auth-success-bg);
  border: 1px solid #1f6b4d;
  color: #86efac;
}

.auth-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.auth-badge-admin {
  background: #3b1d54;
  border: 1px solid #7c3aed;
  color: #c4b5fd;
}

.auth-badge-op {
  background: #11343a;
  border: 1px solid #0d9488;
  color: #5eead4;
}

.auth-badge-viewer {
  background: #1e293b;
  border: 1px solid #475569;
  color: #94a3b8;
}

.auth-badge-2fa {
  background: #143224;
  border: 1px solid #10b981;
  color: #6ee7b7;
}

/* Setup Wizard 2FA */
.auth-setup-qr {
  display: flex;
  justify-content: center;
  margin: 18px 0;
}

.auth-setup-secret {
  background: #0d1320;
  border: 1px dashed var(--auth-border);
  border-radius: 8px;
  padding: 10px 14px;
  font-family: monospace, monospace;
  font-size: 15px;
  color: var(--auth-cyan);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
  word-break: break-all;
}

.auth-token-box {
  background: #0d1320;
  border: 1px dashed var(--auth-cyan);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 16px;
}

.auth-backup-codes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: #0a0e17;
  border: 1px solid var(--auth-border);
  border-radius: 10px;
  padding: 12px;
  font-family: monospace, monospace;
  font-size: 14px;
  color: #fcd34d;
  margin: 12px 0;
  text-align: center;
}

/* Spinner */
.auth-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(0, 0, 0, 0.2);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: authSpin 0.7s linear infinite;
  display: inline-block;
}

@keyframes authSpin {
  to { transform: rotate(360deg); }
}

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

.auth-footer a {
  color: var(--auth-cyan);
  text-decoration: none;
}

.auth-footer a:hover {
  text-decoration: underline;
}

/* Aviso Institucional no Rodapé */
.radar-footer-notice {
  box-sizing: border-box;
  max-width: 540px;
  margin: 20px auto 14px;
  padding: 13px 16px;
  background: #182232;
  border: 1px solid #364864;
  border-left: 4px solid #f59e0b;
  border-radius: 10px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  text-align: left;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
}

.radar-footer-notice-icon {
  font-size: 20px;
  line-height: 1.1;
  flex-shrink: 0;
  margin-top: 1px;
}

.radar-footer-notice-content {
  flex: 1;
  min-width: 0;
}

.radar-footer-notice-title {
  display: block;
  font-size: 12.5px;
  font-weight: 750;
  color: #fcd34d;
  letter-spacing: 0.04em;
  margin-bottom: 3px;
  text-transform: uppercase;
}

.radar-footer-notice-text {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
  color: #cdd9e8;
}
