
:root {
  font-family: Arial, Helvetica, sans-serif;
  color: #172033;
  background: #f4f7fc;
}

* { box-sizing: border-box; }

body { margin: 0; min-height: 100vh; }

button, input { font: inherit; }

button { cursor: pointer; }

button:disabled { cursor: wait; opacity: .65; }

[hidden] { display: none !important; }

.admin-header {
  background: white;
  box-shadow: 0 2px 12px rgba(22,42,74,.07);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-top {
  max-width: 1440px;
  margin: auto;
  min-height: 70px;
  padding: 12px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 850;
  color: #155ac1;
  font-size: 22px;
  letter-spacing: -.6px;
}

.brand strong {
  color: #172033;
  font-size: 14px;
}

.brand-symbol, .login-symbol {
  display: grid;
  place-items: center;
  background: #1868dc;
  color: white;
  border-radius: 12px;
  font-weight: 900;
}

.brand-symbol { width: 38px; height: 38px; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-actions button, .secondary {
  background: white;
  border: 1px solid #ccd6e6;
  color: #243c62;
  padding: 10px 16px;
  border-radius: 10px;
}

#adminMenu {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  border-top: 1px solid #eef1f6;
  padding: 0 20px;
}

#adminMenu a {
  text-decoration: none;
  color: #364259;
  font-weight: 700;
  padding: 16px 0;
  font-size: 15px;
  border-bottom: 3px solid transparent;
}

#adminMenu a.active {
  color: #1264cd;
  border-color: #1264cd;
}

.login-wrap {
  min-height: calc(100vh - 75px);
  display: grid;
  place-items: center;
  padding: 32px 16px;
}

.login-card {
  background: white;
  width: 100%;
  max-width: 480px;
  border: 1px solid #e1e9f4;
  border-radius: 22px;
  padding: 38px;
  box-shadow: 0 16px 48px rgba(26,48,89,.09);
}

.login-symbol {
  width: 54px;
  height: 54px;
  font-size: 31px;
  margin: 0 auto 18px;
}

.login-card h1 {
  text-align: center;
  margin: 0 0 10px;
  font-size: 28px;
}

.sub {
  color: #69768c;
  text-align: center;
  line-height: 1.6;
}

.login-card form {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}

.login-card label {
  font-size: 15px;
  font-weight: 750;
}

.login-card input {
  width: 100%;
  padding: 15px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: 16px;
}

.login-card form button {
  border-radius: 10px;
  min-height: 47px;
}

.login-card form button[type="submit"] {
  color: white;
  background: #165fca;
  border: 0;
  font-weight: 750;
}

.feedback {
  min-height: 22px;
  color: #a13d27;
  font-size: 14px;
  line-height: 1.5;
}

.login-seguranca {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid #e7edf6;
  margin-top: 22px;
  padding-top: 18px;
  color: #60728d;
  font-size: 12px;
}

.admin-content {
  max-width: 1440px;
  margin: 28px auto 60px;
  padding: 0 24px;
}

.page-intro {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 25px;
}

.page-intro h1 {
  font-size: 36px;
  letter-spacing: -.8px;
  margin: 0 0 8px;
}

.page-intro p { color: #64748b; margin: 0; }

.environment {
  padding: 10px 15px;
  color: #155fca;
  background: #e6f0ff;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 800;
}

.cards {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.metric, .panel {
  border: 1px solid #e2eaf5;
  border-radius: 18px;
  background: white;
  padding: 24px;
  box-shadow: 0 4px 16px rgba(23,42,74,.04);
}

.metric { display: grid; gap: 12px; }

.metric span { color: #50627f; font-weight: 700; }

.metric strong { font-size: 31px; }

.metric small { color: #73829a; }

.panel h2 { margin: 0 0 14px; font-size: 23px; }

.panel p { color: #62718b; line-height: 1.6; }

.notice {
  background: #f3f7fd;
  padding: 18px;
  border-radius: 12px;
  color: #51617c;
  margin-top: 20px;
}

@media(max-width: 900px) {
  .cards { grid-template-columns: repeat(2,1fr); }
}

@media(max-width: 600px) {
  .brand { font-size: 17px; }
  .header-top { padding: 12px 15px; }
  #adminMenu { gap: 13px; }
  #adminMenu a { font-size: 13px; }
  .login-card { padding: 26px 20px; }
  .cards { grid-template-columns: 1fr; }
  .page-intro { flex-direction: column; align-items: start; }
  .page-intro h1 { font-size: 29px; }
  .login-seguranca { flex-direction: column; }
}
