: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;
  }
}

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

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

.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: flex;
  flex-direction: column;
  gap: 14px;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  min-height: 180px;
  transition:
    border-color 0.2s,
    transform 0.2s,
    background 0.2s;
}

.card:hover {
  border-color: var(--green);
  background: var(--surface2);
  transform: translateY(-2px);
}

.card-main {
  display: flex;
  flex: 1;
  flex-direction: row;
  align-items: center;
  gap: 24px;
}

.card-info {
  display: flex;
  flex-direction: column;
  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;
}
