:root {
  --bg: #0d0e0d;
  --surface: #141615;
  --surface2: #1c1d1c;
  --surface3: #242624;

  --border: rgba(255, 255, 255, 0.06);
  --border2: rgba(255, 255, 255, 0.12);

  --text: #f1f5f9;
  --text2: #94a3b8;
  --text3: #475569;

  --blue: #0f3bfe;
  --blue-lt: #3d62fe;
  --blue-dim: #93aaff;
  --blue-dim2: rgba(15, 59, 254, 0.15);

  --green: #c0f58b;
  --green-dk: #86c65a;
  --green-dim: rgba(192, 245, 139, 0.12);

  --amber: #f59e0b;
  --amber-dim: rgba(245, 158, 11, 0.15);

  --red: #ef4444;
  --red-dim: rgba(239, 68, 68, 0.15);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Work Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
}

.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.login-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 48px 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.login-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  margin-bottom: 36px;
}

.login-logo {
  height: 36px;
}

.login-logo-team {
  font-size: 34px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--green);
}

.login-error {
  background: var(--red-dim);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 13px;
  color: var(--red);
  margin-bottom: 18px;
}

.form-field {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: 8px;
  padding: 12px 16px;
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
  transition:
    border-color 0.2s,
    background 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: var(--blue);
  background: var(--surface3);
}

.btn-primary {
  width: 100%;
  background: var(--green);
  color: var(--bg);
  border: none;
  border-radius: 8px;
  padding: 14px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition:
    filter 0.2s,
    transform 0.2s;
  margin-top: 8px;
}

.btn-primary:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

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

.erro-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.erro-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 56px 48px;
  text-align: center;
  max-width: 500px;
  width: 100%;
}

.erro-status {
  font-size: 72px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 16px;
  color: var(--red);
}

.erro-mensagem {
  font-size: 16px;
  color: var(--text2);
  margin-bottom: 32px;
  line-height: 1.5;
}

.erro-link {
  display: inline-block;
  background: transparent;
  border: 1px solid var(--border2);
  color: var(--text);
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  transition:
    border-color 0.2s,
    color 0.2s;
}

.erro-link:hover {
  border-color: var(--blue);
  color: var(--blue-dim);
}

.hub-page {
  min-height: 100vh;
  padding: 48px 24px;
}

.team-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.team-glow {
  position: absolute;
  width: 62vw;
  height: 62vw;
  top: -22vw;
  right: -16vw;
  background: radial-gradient(
    circle,
    rgba(192, 245, 139, 0.1),
    transparent 60%
  );
  filter: blur(22px);
  animation: team-breathe 11s ease-in-out infinite;
}

@keyframes team-breathe {
  0%,
  100% {
    opacity: 0.7;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

.lighthouse {
  position: absolute;
  right: 1vw;
  bottom: 0;
}

.lighthouse-svg {
  display: block;
  width: auto;
  height: 66vh;
}

.lighthouse .house {
  fill: none;
  stroke: rgba(244, 246, 242, 0.55);
  stroke-width: 1.6;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.lighthouse .lamp {
  fill: rgba(192, 245, 139, 0.95);
}

.lamp-glow {
  position: absolute;
  left: 50%;
  top: 30.3%;
  width: 64px;
  height: 64px;
  margin: -32px 0 0 -32px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(192, 245, 139, 0.55),
    transparent 65%
  );
  animation: lamp-pulse 7s ease-in-out infinite;
}

.beam {
  position: absolute;
  left: 50%;
  top: 30.3%;
  width: 46vw;
  height: 34vh;
  margin-left: -46vw;
  margin-top: -17vh;
  transform-origin: right center;
  background: linear-gradient(
    to left,
    rgba(192, 245, 139, 0.28),
    rgba(192, 245, 139, 0) 72%
  );
  clip-path: polygon(100% 50%, 0% 12%, 0% 88%);
  opacity: 0.4;
  animation: beacon 7s ease-in-out infinite;
}

@keyframes beacon {
  0% {
    transform: rotate(8deg);
    opacity: 0.12;
  }
  50% {
    transform: rotate(-8deg);
    opacity: 0.5;
  }
  100% {
    transform: rotate(8deg);
    opacity: 0.12;
  }
}

@keyframes lamp-pulse {
  0%,
  100% {
    opacity: 0.5;
    transform: scale(0.92);
  }
  50% {
    opacity: 1;
    transform: scale(1.06);
  }
}

.boat {
  position: absolute;
  bottom: 7vh;
  left: 0;
  width: 70px;
  transform: translate(30vw, 0);
  animation: sail 32s linear infinite;
  will-change: transform;
}

.boat-svg {
  display: block;
  width: 100%;
  height: auto;
  opacity: 0.5;
  transform: scaleX(-1);
}

.boat-line {
  fill: none;
  stroke: rgba(244, 246, 242, 0.6);
  stroke-width: 1.6;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.boat-sail {
  fill: rgba(192, 245, 139, 0.12);
}

.boat-flag {
  fill: rgba(192, 245, 139, 0.85);
}

@keyframes sail {
  0% {
    transform: translate(112vw, 0) rotate(-2deg);
  }
  25% {
    transform: translate(80vw, -7px) rotate(2deg);
  }
  50% {
    transform: translate(48vw, 0) rotate(-2deg);
  }
  75% {
    transform: translate(18vw, -7px) rotate(2deg);
  }
  100% {
    transform: translate(-12vw, 0) rotate(-2deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .beam,
  .lamp-glow,
  .team-glow,
  .boat {
    animation: none;
  }
}

.fxbg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.gridbg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: linear-gradient(
      rgba(192, 245, 139, 0.03) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(192, 245, 139, 0.03) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(
    ellipse 80% 70% at 50% 40%,
    #000 25%,
    transparent 78%
  );
  mask-image: radial-gradient(
    ellipse 80% 70% at 50% 40%,
    #000 25%,
    transparent 78%
  );
}

.glow1,
.glow2 {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(14px);
}

.glow1 {
  width: 55vw;
  height: 55vw;
  top: -24vw;
  right: -16vw;
  background: radial-gradient(
    circle,
    rgba(192, 245, 139, 0.06),
    transparent 62%
  );
  animation: breathe 13s ease-in-out infinite;
}

.glow2 {
  width: 45vw;
  height: 45vw;
  bottom: -22vw;
  left: -14vw;
  background: radial-gradient(circle, rgba(15, 59, 254, 0.07), transparent 62%);
  animation: breathe 16s ease-in-out infinite reverse;
}

@keyframes breathe {
  0%,
  100% {
    opacity: 0.6;
    transform: scale(1);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.06);
  }
}

.scan {
  position: fixed;
  left: 0;
  right: 0;
  height: 110px;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(192, 245, 139, 0.025),
    transparent
  );
  animation: scan 14s linear infinite;
}

@keyframes scan {
  0% {
    top: -14%;
  }
  100% {
    top: 110%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .glow1,
  .glow2,
  .scan {
    animation: none;
  }
}

.hub {
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin: 0 auto;
}

.hub-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 40px;
}

.hub-header form {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

.hub-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hub-logo {
  height: 32px;
}

.hub-logo-team {
  font-size: 30px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--green);
}

.btn-logout {
  background: transparent;
  border: 1px solid var(--border2);
  color: var(--text2);
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition:
    border-color 0.2s,
    color 0.2s;
}

.btn-logout:hover {
  border-color: var(--red);
  color: var(--red);
}

.hub-grid {
  display: grid;
  grid-template-columns: minmax(0, 470px);
  justify-content: center;
  gap: 14px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  isolation: isolate;
  transition: transform 0.2s ease;
  --edge: 0;
  --angle: 0deg;
}

.card:hover {
  transform: translateY(-2px);
}

.card-main {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 24px;
  min-height: 126px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: inherit;
  transition:
    border-color 0.2s,
    background 0.2s;
}

.card:hover .card-main {
  border-color: var(--green);
  background: var(--surface2);
}

.card::before,
.card::after {
  content: '';
  position: absolute;
  border-radius: inherit;
  pointer-events: none;
  background: conic-gradient(
    from var(--angle),
    var(--green) 0deg,
    var(--green-dk) 38deg,
    transparent 104deg,
    transparent 256deg,
    var(--green-dk) 322deg,
    var(--green) 360deg
  );
  opacity: min(1, calc(var(--edge) / 55));
  transition: opacity 0.25s ease;
}

.card::before {
  inset: 0;
  padding: 2.5px;
  z-index: 2;
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.card::after {
  inset: -6px;
  z-index: 0;
  filter: blur(18px);
  opacity: min(1, calc(var(--edge) / 50));
}

@media (prefers-reduced-motion: reduce) {
  .card::before,
  .card::after {
    transition: none;
  }
}

.card-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  min-width: 0;
}

.card-setor {
  font-size: 13.75px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text3);
}

.card-nome {
  font-size: 21.25px;
  font-weight: 600;
  line-height: 1.35;
}
