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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  background: #f5f7fa;
  color: #1f2933;
  line-height: 1.6;
}

.header {
  background: linear-gradient(135deg, #05aacf 0%, #08abd0 100%);
  color: #ffffff;
  padding: 1.25rem 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.header-content {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo {
  height: 46px;
  width: auto;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.25));
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-kicker {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.9;
}

.brand-title {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.user-area {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.user-name {
  font-size: 0.9rem;
  font-weight: 500;
}

.btn-primary,
.btn-secondary,
.btn-link {
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease,
    color 0.15s ease, opacity 0.15s ease;
}

.btn-primary {
  padding: 0.85rem 1.75rem;
  background: linear-gradient(135deg, #05aacf 0%, #08abd0 100%);
  color: #ffffff;
  box-shadow: 0 10px 25px rgba(5, 170, 207, 0.4);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 35px rgba(5, 170, 207, 0.55);
}

.btn-secondary {
  padding: 0.65rem 1.3rem;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.18);
}

.btn-link {
  padding: 0.3rem 0.6rem;
  background: transparent;
  color: #05aacf;
}

.btn-link:hover {
  color: #0389a6;
}

main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3.5rem;
}

.hero {
  background: #ffffff;
  border-radius: 22px;
  padding: 2.5rem 2.25rem;
  box-shadow: 0 20px 65px rgba(9, 44, 76, 0.18);
  margin-top: -2.5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 0 0,
    rgba(5, 170, 207, 0.16),
    transparent 55%
  );
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: 1.9rem;
  color: #1f2933;
  margin-bottom: 1rem;
}

.hero-title span {
  color: #05aacf;
  font-weight: 700;
}

.hero-subtitle {
  font-size: 1rem;
  color: #52606d;
  max-width: 620px;
  margin-bottom: 1.6rem;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 1.75rem;
  align-items: flex-start;
}

.hero-actions {
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: #e0f7fa;
  color: #036273;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.apps-section {
  margin-top: 2.5rem;
}

.section-header {
  margin-bottom: 1.5rem;
}

.section-header h3 {
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #52606d;
  margin-bottom: 0.4rem;
}

.section-header p {
  color: #7b8794;
  font-size: 0.95rem;
}

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

.app-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 1.3rem 1.25rem 1.4rem;
  box-shadow: 0 10px 28px rgba(15, 33, 45, 0.1);
  border: 1px solid #e4ecf3;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.app-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(15, 33, 45, 0.16);
  border-color: rgba(5, 170, 207, 0.55);
}

.app-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  background: #f1fbfd;
  color: #0389a6;
  font-weight: 600;
  margin-bottom: 0.55rem;
}

.app-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1f2933;
  margin-bottom: 0.45rem;
}

.app-description {
  font-size: 0.9rem;
  color: #7b8794;
  margin-bottom: 0.85rem;
}

.app-meta {
  font-size: 0.8rem;
  color: #9fb3c8;
  margin-bottom: 1rem;
}

.app-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.app-status {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #0389a6;
}

.info-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 2.75rem;
}

.info-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 1.5rem 1.4rem;
  border: 1px solid #e4ecf3;
}

.info-card h4 {
  font-size: 1rem;
  color: #1f2933;
  margin-bottom: 0.9rem;
}

.info-card ul,
.info-card ol {
  margin-left: 1.1rem;
  color: #52606d;
  font-size: 0.9rem;
}

.info-card li + li {
  margin-top: 0.4rem;
}

.footer {
  text-align: center;
  padding: 1.5rem 1rem 2rem;
  font-size: 0.85rem;
  color: #9fb3c8;
}

@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    padding: 1.7rem 1.5rem;
    margin-top: -1.8rem;
  }

  .hero-title {
    font-size: 1.6rem;
  }

  .hero-layout {
    grid-template-columns: 1fr;
  }

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

/* Login page — mirrors enort-NFSE-Safe's Login.tsx: centered white card
   (max 448px, 40px padding, heavy soft shadow) floating over the same teal
   gradient used in the header, with the same wordmark/subheading/input-stack
   /error-banner treatment as clientes' login.html. */

.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #05aacf 0%, #08abd0 100%);
  padding: 20px;
}

.login-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  padding: 40px;
  max-width: 448px;
  width: 100%;
}

.logo-block {
  text-align: center;
  margin-bottom: 8px;
}

.logo-block img {
  height: 45px;
  width: auto;
  margin: 0 auto 16px;
  display: block;
}

.wordmark {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #2d3748;
}

.subheading {
  text-align: center;
  font-size: 0.875rem;
  color: #718096;
  margin-top: 12px;
  margin-bottom: 32px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.error-banner {
  display: none;
  background: #fef2f2;
  border-left: 4px solid #c62828;
  color: #b91c1c;
  padding: 12px 16px;
  border-radius: 6px;
  margin-bottom: 24px;
  font-size: 0.875rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.error-banner.show {
  display: block;
}

.input-group {
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  margin-bottom: 24px;
}

.input-group input {
  display: block;
  width: 100%;
  padding: 12px;
  font-size: 0.95rem;
  color: #2d3748;
  border: 2px solid #e2e8f0;
  margin-top: -2px;
  position: relative;
}

.input-group input:first-child {
  margin-top: 0;
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
}

.input-group input:last-child {
  border-bottom-left-radius: 6px;
  border-bottom-right-radius: 6px;
}

.input-group input::placeholder {
  color: #718096;
}

.input-group input:focus {
  outline: none;
  border-color: #05aacf;
  z-index: 1;
}

.login-button {
  width: 100%;
  justify-content: center;
}

.hidden {
  display: none !important;
}
