@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Ubuntu:wght@300;400;500;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&display=swap");
* {
  box-sizing: border-box;
}

:root {
  --bg: #0b1020;
  --bg-2: #0f172a;
  --card: rgba(17, 24, 39, 0.65);
  --border: rgba(255, 255, 255, 0.08);
  --txt: #e5e7eb;
  --muted: #94a3b8;
  --primary: #60a5fa;
  --primary-2: #8b5cf6;
  --danger: #ef4444;
  --success: #22c55e;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto,
    "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--txt);
  background: radial-gradient(
      1200px 700px at 10% -10%,
      #1f2937 0,
      transparent 60%
    ),
    radial-gradient(1000px 600px at 110% 20%, #111827 0, transparent 55%),
    linear-gradient(180deg, var(--bg) 0, #0a0f1d 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Animated aurora backdrop */
.aurora {
  position: fixed;
  inset: -20vmax;
  background: radial-gradient(
      35vmax 35vmax at 15% 20%,
      rgba(96, 165, 250, 0.18),
      transparent 60%
    ),
    radial-gradient(
      40vmax 40vmax at 85% 30%,
      rgba(139, 92, 246, 0.16),
      transparent 55%
    ),
    radial-gradient(
      30vmax 30vmax at 50% 85%,
      rgba(34, 197, 94, 0.12),
      transparent 60%
    );
  filter: blur(45px);
  animation: floaty 18s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}
@keyframes floaty {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    transform: translate3d(0, -2%, 0) scale(1.06);
  }
}

.login-wrap {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 40px);
}

.login-grid {
  width: 100%;
  max-width: 1120px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(16px, 2.5vw, 28px);
}
@media (max-width: 992px) {
  .login-grid {
    grid-template-columns: 1fr;
  }
}

.login-hero {
  border: 1px solid var(--border);
  border-radius: 20px;
  background: linear-gradient(
    165deg,
    rgba(255, 255, 255, 0.04),
    rgba(255, 255, 255, 0.02)
  );
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  padding: clamp(24px, 3vw, 36px);
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.brand .logo {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #0b1020;
  font-weight: 800;
  box-shadow: 0 10px 40px rgba(96, 165, 250, 0.35);
}
.brand h1 {
  font-size: clamp(18px, 2.4vw, 22px);
  margin: 0;
  letter-spacing: 0.4px;
}
.hero-title {
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1.15;
  margin: 6px 0 8px;
  font-weight: 800;
}
.hero-sub {
  color: var(--muted);
  margin-bottom: 14px;
}
.hero-bullets {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  color: #cbd5e1;
}
.hero-bullets i {
  color: var(--primary);
  margin-right: 8px;
}
.credits {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.9rem;
}
.credits a {
  color: #cbd5e1;
  text-decoration: underline dotted;
}

.login-card {
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--card);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  padding: clamp(24px, 3vw, 36px);
}
.login-card h2 {
  font-weight: 800;
  margin: 0 0 6px;
}
.login-card .sub {
  color: var(--muted);
  margin-bottom: 18px;
}

.input-field {
  position: relative;
  margin-bottom: 14px;
}
.input-field .label-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}
.input-field input {
  width: 100%;
  padding: 12px 14px 12px 40px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(2, 6, 23, 0.5);
  color: var(--txt);
  outline: none;
  transition: border 0.2s, background 0.2s;
}
.input-field input::placeholder {
  color: #64748b;
}
.input-field input:focus {
  border-color: rgba(96, 165, 250, 0.65);
  background: rgba(2, 6, 23, 0.7);
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.15);
}
.view-pass {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
}
.view-pass:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #e2e8f0;
}
.action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 2px 0 14px;
}
.btn-esqueceu-senha {
	border: none;
	background: none;
}
.link-muted {
  color: var(--muted);
  font-size: 0.95rem;
  text-decoration: none;
}
.link-muted:hover {
  color: #cbd5e1;
  text-decoration: underline;
}
#btn-acessar {
  width: 100%;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #0b1020;
  font-weight: 800;
  padding: 12px 16px;
  letter-spacing: 0.3px;
  transition: transform 0.05s ease, filter 0.2s ease;
}
#btn-acessar:active {
  transform: translateY(1px) scale(0.995);
}

.modal-default .modal-content {
  background: #0f172a;
  color: var(--txt);
  border: 1px solid var(--border);
  border-radius: 16px;
}
.modal-default .modal-header {
  border-bottom: 1px solid var(--border);
}
.modal-default .modal-footer {
  border-top: 1px solid var(--border);
}
.alert-danger {
  background: rgba(239, 68, 68, 0.12);
  color: #fecaca;
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 12px;
}
.detalhes-login {
  display: none; 
}
