:root {
  --z-ink: #0b1f2a;
  --z-sea: #0e7490;
  --z-foam: #ecfeff;
  --z-sand: #f8fafc;
  --z-mist: rgba(255, 255, 255, 0.82);
  --z-font-display: "Fraunces", Georgia, serif;
  --z-font-body: "Sora", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: var(--z-font-body);
  color: var(--z-ink);
  background: var(--z-sand);
}

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

.z-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.z-nav {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem clamp(1.25rem, 4vw, 3rem);
}

.z-brand {
  font-family: var(--z-font-display);
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: #fff;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

.z-nav-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.z-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 0.7rem 1.25rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.z-btn:hover {
  transform: translateY(-1px);
}

.z-btn-ghost {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(8px);
}

.z-btn-solid {
  background: #fff;
  color: var(--z-ink);
  box-shadow: 0 10px 30px rgba(11, 31, 42, 0.18);
}

.z-btn-primary {
  background: var(--z-sea);
  color: #fff;
  width: 100%;
}

.z-hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: end stretch;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(11, 31, 42, 0.35) 0%, rgba(11, 31, 42, 0.72) 100%),
    url("/frontend/img/bgnew.webp") center / cover no-repeat;
}

.z-hero-inner {
  width: min(920px, calc(100% - 2rem));
  margin: 0 auto 12vh;
  text-align: center;
  color: #fff;
}

.z-hero-inner h1 {
  margin: 0;
  font-family: var(--z-font-display);
  font-size: clamp(2.4rem, 7vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 600;
}

.z-hero-inner p {
  margin: 1rem auto 0;
  max-width: 34rem;
  font-size: 1.05rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
}

.z-search {
  margin: 2rem auto 0;
  width: min(720px, 100%);
  background: var(--z-mist);
  color: var(--z-ink);
  border-radius: 1.25rem;
  padding: 1rem;
  display: grid;
  gap: 0.75rem;
  backdrop-filter: blur(14px);
  box-shadow: 0 20px 50px rgba(11, 31, 42, 0.28);
}

.z-search-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.z-field {
  text-align: left;
}

.z-field label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 0.35rem;
}

.z-field input,
.z-field select {
  width: 100%;
  border: 1px solid #dbe3ea;
  border-radius: 0.85rem;
  padding: 0.85rem 0.95rem;
  font: inherit;
  background: #fff;
}

.z-section {
  padding: 4.5rem clamp(1.25rem, 4vw, 3rem);
  max-width: 1100px;
  margin: 0 auto;
}

.z-section h2 {
  margin: 0 0 0.75rem;
  font-family: var(--z-font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  letter-spacing: -0.03em;
}

.z-section p {
  margin: 0;
  color: #475569;
  max-width: 36rem;
  line-height: 1.6;
}

.z-footer {
  margin-top: auto;
  padding: 2rem clamp(1.25rem, 4vw, 3rem);
  border-top: 1px solid #e2e8f0;
  color: #64748b;
  font-size: 0.9rem;
}

.z-login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
  background:
    radial-gradient(circle at top, rgba(14, 116, 144, 0.18), transparent 42%),
    linear-gradient(160deg, #f8fafc 0%, #e0f2fe 48%, #ecfeff 100%);
}

.z-login-card {
  width: min(420px, 100%);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 1.5rem;
  padding: 2rem 1.5rem 1.75rem;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(10px);
}

.z-login-card .z-brand {
  display: block;
  text-align: center;
  color: var(--z-ink);
  text-shadow: none;
  margin-bottom: 0.35rem;
}

.z-login-card h1 {
  margin: 0;
  text-align: center;
  font-family: var(--z-font-display);
  font-size: 1.85rem;
  letter-spacing: -0.03em;
}

.z-login-card .subtitle {
  margin: 0.4rem 0 1.5rem;
  text-align: center;
  color: #64748b;
  font-size: 0.95rem;
}

.z-login-card .z-field {
  margin-bottom: 0.9rem;
}

.z-login-card .z-field input {
  border-radius: 0.75rem;
}

.z-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.25rem 0 1.15rem;
  color: #475569;
  font-size: 0.92rem;
}

.z-alert {
  margin-bottom: 1rem;
  padding: 0.75rem 0.9rem;
  border-radius: 0.75rem;
  background: #fef2f2;
  color: #b91c1c;
  font-size: 0.9rem;
}

.z-login-meta {
  margin-top: 1.1rem;
  text-align: center;
  font-size: 0.88rem;
  color: #64748b;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  align-items: center;
}

.z-login-meta a {
  color: var(--z-sea);
  font-weight: 600;
}

@media (max-width: 720px) {
  .z-search-row {
    grid-template-columns: 1fr;
  }

  .z-hero-inner {
    margin-bottom: 8vh;
  }
}
