* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", Arial, sans-serif;
}

:root {
  --roxo: #6d28d9;
  --roxo-escuro: #3b0764;
  --lilas: #a855f7;
  --rosa: #ec4899;
  --pink-claro: #fdf2f8;
  --texto: #1f2937;
  --cinza: #6b7280;
  --borda: #eadcf8;
  --branco: #ffffff;
  --fundo: #fff7fd;
  --sucesso: #15803d;
  --erro: #b91c1c;
  --alerta: #92400e;
}

body {
  min-height: 100vh;
  color: var(--texto);
  background:
    radial-gradient(circle at top left, rgba(236, 72, 153, .22), transparent 30%),
    radial-gradient(circle at bottom right, rgba(109, 40, 217, .18), transparent 28%),
    linear-gradient(135deg, #fff7fd 0%, #f5edff 48%, #ffffff 100%);
  padding: 28px;
  overflow-x: hidden;
}

main {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.blur {
  position: fixed;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -1;
}

.blur1 {
  background: var(--lilas);
  top: -100px;
  left: -100px;
  opacity: .28;
}

.blur2 {
  background: var(--rosa);
  right: -100px;
  bottom: -120px;
  opacity: .22;
}

.hidden {
  display: none !important;
}

.login-screen {
  min-height: calc(100vh - 56px);
  display: flex;
  justify-content: center;
  align-items: center;
}

.login-box,
.topbar,
.modulo,
.card {
  background: rgba(255, 255, 255, .92);
  border: 1px solid var(--borda);
  box-shadow: 0 20px 55px rgba(88, 28, 135, .10);
  backdrop-filter: blur(10px);
}

.login-box {
  width: 100%;
  max-width: 430px;
  padding: 38px;
}

.tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  color: var(--roxo);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 10px;
}

h1 {
  font-size: clamp(30px, 5vw, 44px);
  line-height: 1.05;
  color: var(--roxo-escuro);
  margin-bottom: 12px;
}

h2 {
  font-size: clamp(24px, 3vw, 34px);
  color: var(--roxo-escuro);
}

h3 {
  color: var(--roxo-escuro);
  margin-bottom: 10px;
}

.sub,
.topbar p,
.card p,
.module-head p,
.aviso {
  color: var(--cinza);
  line-height: 1.6;
}

.aviso {
  margin-top: 14px;
  font-size: 13px;
}

.input-group {
  margin-bottom: 16px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #374151;
}

input,
select {
  width: 100%;
  padding: 14px 15px;
  border: 1px solid #e4d4f4;
  background: #fffaff;
  color: var(--texto);
  outline: none;
  transition: .2s ease;
  font-size: 14px;
}

input:focus,
select:focus {
  border-color: var(--rosa);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(236, 72, 153, .10);
}

button {
  width: 100%;
  padding: 14px 16px;
  border: none;
  background: linear-gradient(90deg, var(--roxo), var(--rosa));
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: .2s ease;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(109, 40, 217, .18);
}

.btn-secondary {
  background: #ffffff;
  color: var(--roxo);
  border: 1px solid var(--borda);
}

.dashboard {
  width: 100%;
}

.topbar {
  padding: 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 26px;
}

.top-user {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: fit-content;
}

.top-user span {
  display: block;
  color: var(--cinza);
  font-size: 13px;
  margin-top: 3px;
}

.avatar {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--roxo), var(--rosa));
  color: white;
  font-weight: 800;
  border: 3px solid #f9d8ef;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}

.card {
  text-align: left;
  color: var(--texto);
  padding: 26px;
  min-height: 180px;
}

.card span {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  background: var(--pink-claro);
  color: var(--roxo);
  font-weight: 900;
  margin-bottom: 18px;
  border: 1px solid #f3c4df;
}

.card h3 {
  font-size: 21px;
}

.card.sair {
  border-color: #fecaca;
}

.card.sair span {
  background: #fff1f2;
  color: #be123c;
}

.modulo {
  margin-top: 26px;
  padding: 30px;
}

.module-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--borda);
}

.module-head .btn-secondary {
  max-width: 180px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.grid.one {
  grid-template-columns: 1fr;
}

.action-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 8px;
}

.tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-bottom: 22px;
}

.tabs button {
  padding: 12px;
  background: #fbf5ff;
  border: 1px solid var(--borda);
  color: var(--roxo);
}

.painel-hospede {
  padding: 20px;
  background: #fffaff;
  border: 1px solid var(--borda);
  margin-bottom: 18px;
}

.resultado {
  margin-top: 22px;
  background: linear-gradient(180deg, #fffaff, #ffffff);
  border: 1px solid var(--borda);
  padding: 22px;
  line-height: 1.85;
  min-height: 70px;
}

.resultado:empty {
  display: none;
}

.resultado ul,
.resultado ol {
  padding-left: 22px;
}

.status-ok {
  color: var(--sucesso);
  font-weight: 800;
}

.status-erro {
  color: var(--erro);
  font-weight: 800;
}

.status-alerta {
  color: var(--alerta);
  font-weight: 800;
}

.quartos-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.quarto-box {
  padding: 12px;
  text-align: center;
  border: 1px solid var(--borda);
  background: #ffffff;
  font-weight: 800;
}

.quarto-box.ocupado {
  background: #fce7f3;
  color: #be185d;
  border-color: #f9a8d4;
}

.quarto-box.livre {
  background: #f5f3ff;
  color: var(--roxo);
}

.tabela {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  overflow: hidden;
}

.tabela th,
.tabela td {
  border: 1px solid var(--borda);
  padding: 12px;
  text-align: left;
  vertical-align: top;
}

.tabela th {
  background: #faf5ff;
  color: var(--roxo-escuro);
}

@media (max-width: 780px) {
  body {
    padding: 18px;
  }

  .topbar,
  .module-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .module-head .btn-secondary {
    max-width: 100%;
  }

  .grid,
  .action-row {
    grid-template-columns: 1fr;
  }

  .quartos-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .login-box,
  .modulo,
  .topbar,
  .card {
    padding: 22px;
  }
}
