/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

:root {
  color-scheme: light;
  --home-bg: #f7f8fa;
  --home-text: #17202a;
  --home-muted: #5d6875;
  --home-line: #d9dee5;
  --home-panel: #ffffff;
  --home-accent: #0f766e;
  --home-accent-hover: #0b5f59;
}

body {
  margin: 0;
  color: var(--home-text);
  background: var(--home-bg);
  font-family: Arial, Helvetica, sans-serif;
}

.public-header {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(1100px, calc(100% - 48px));
  margin: 0 auto;
  padding: 20px 0;
}

.public-header__brand {
  color: var(--home-text);
  font-weight: 700;
  text-decoration: none;
}

.public-locale-switcher {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(217, 222, 229, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.public-locale-switcher__link {
  padding: 7px 10px;
  border-radius: 5px;
  color: var(--home-muted);
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
}

.public-locale-switcher__link:hover,
.public-locale-switcher__link:focus {
  color: var(--home-text);
}

.public-locale-switcher__link--active {
  color: #ffffff;
  background: var(--home-accent);
}

.home-page {
  min-height: 100vh;
}

.home-hero {
  display: flex;
  align-items: center;
  min-height: 58vh;
  padding: 64px 24px 48px;
  background:
    linear-gradient(rgba(247, 248, 250, 0.92), rgba(247, 248, 250, 0.86)),
    url("https://images.unsplash.com/photo-1560518883-ce09059eeffa?auto=format&fit=crop&w=1800&q=80") center / cover;
  border-bottom: 1px solid var(--home-line);
}

.home-hero__content {
  width: min(920px, 100%);
  margin: 0 auto;
}

.home-hero__eyebrow {
  margin: 0 0 14px;
  color: var(--home-accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-hero h1 {
  margin: 0;
  font-size: clamp(3rem, 8vw, 6.5rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.home-hero__summary {
  max-width: 620px;
  margin: 24px 0 0;
  color: var(--home-muted);
  font-size: 1.2rem;
  line-height: 1.6;
}

.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.home-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
}

button.home-button {
  border: 0;
  font: inherit;
  cursor: pointer;
}

.home-button--primary {
  color: #ffffff;
  background: var(--home-accent);
}

.home-button--primary:hover,
.home-button--primary:focus {
  background: var(--home-accent-hover);
}

.home-button--secondary {
  color: var(--home-text);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--home-line);
}

.home-button--secondary:hover,
.home-button--secondary:focus {
  border-color: var(--home-accent);
}

.auth-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 32px 16px;
}

.public-flashes {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 10;
  display: grid;
  gap: 8px;
  width: min(360px, calc(100vw - 32px));
}

.public-flash {
  padding: 12px 14px;
  border: 1px solid var(--home-line);
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  font-weight: 700;
}

.public-flash--alert {
  border-color: #fecaca;
  color: #7f1d1d;
  background: #fef2f2;
}

.public-flash--notice {
  border-color: #bbf7d0;
  color: #14532d;
  background: #f0fdf4;
}

.auth-panel {
  width: min(100%, 420px);
  padding: 32px;
  border: 1px solid var(--home-line);
  border-radius: 8px;
  background: #ffffff;
}

.auth-panel h1 {
  margin: 0 0 24px;
  font-size: 1.75rem;
}

.auth-errors {
  margin-bottom: 20px;
  padding: 14px 16px;
  border: 1px solid #fecaca;
  border-radius: 6px;
  color: #7f1d1d;
  background: #fef2f2;
}

.auth-errors h2 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.auth-errors ul {
  margin: 0;
  padding-left: 20px;
}

.auth-field {
  margin-bottom: 18px;
}

.auth-field label {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
}

.auth-field input {
  box-sizing: border-box;
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid var(--home-line);
  border-radius: 6px;
  font: inherit;
}

.auth-actions {
  margin-top: 24px;
}

.auth-actions input {
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 6px;
  color: #ffffff;
  background: var(--home-accent);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.auth-actions input:hover,
.auth-actions input:focus {
  background: var(--home-accent-hover);
}

.auth-links {
  margin-top: 20px;
}

.auth-links a {
  color: var(--home-accent);
  font-weight: 700;
}

.home-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(1100px, calc(100% - 48px));
  margin: 48px auto;
  overflow: hidden;
  border: 1px solid var(--home-line);
  border-radius: 8px;
  background: var(--home-line);
}

.home-overview article {
  min-height: 150px;
  padding: 28px;
  background: var(--home-panel);
}

.home-overview h2 {
  margin: 0 0 12px;
  font-size: 1.05rem;
}

.home-overview p {
  margin: 0;
  color: var(--home-muted);
  line-height: 1.55;
}

.home-capabilities {
  width: min(1100px, calc(100% - 48px));
  margin: 0 auto 64px;
}

.home-section-heading {
  max-width: 720px;
  margin-bottom: 24px;
}

.home-section-heading__eyebrow {
  margin: 0 0 10px;
  color: var(--home-accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-section-heading h2 {
  margin: 0;
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  letter-spacing: 0;
}

.home-section-heading p {
  margin: 14px 0 0;
  color: var(--home-muted);
  line-height: 1.6;
}

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

.home-capability {
  padding: 22px;
  border: 1px solid var(--home-line);
  border-radius: 8px;
  background: var(--home-panel);
}

.home-capability h3 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.home-capability p {
  margin: 0;
  color: var(--home-muted);
  line-height: 1.55;
}

@media (max-width: 760px) {
  .public-header {
    width: min(100% - 32px, 520px);
    padding: 16px 0;
  }

  .home-hero {
    min-height: 52vh;
    padding: 72px 20px 40px;
  }

  .home-hero__summary {
    font-size: 1.05rem;
  }

  .home-overview {
    grid-template-columns: 1fr;
    width: min(100% - 32px, 520px);
    margin: 32px auto;
  }

  .home-capabilities {
    width: min(100% - 32px, 520px);
    margin-bottom: 40px;
  }

  .home-capability-grid {
    grid-template-columns: 1fr;
  }

  .auth-panel {
    padding: 24px;
  }
}
