/*
 * 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: #1f1b19;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html,
body {
  background: #f6f3ef;
  margin: 0;
  min-height: 100%;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid #c94f1e;
  outline-offset: 3px;
}

.atlas-auth-shell {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: 100vh;
  padding: 1.5rem;
}

.atlas-auth-card {
  background: #fff;
  border: 1px solid #ded7d1;
  border-radius: 0.75rem;
  box-sizing: border-box;
  box-shadow: 0 1rem 3rem rgb(67 50 40 / 10%);
  max-width: 28rem;
  padding: clamp(1.5rem, 6vw, 2.5rem);
  width: 100%;
}

.atlas-auth-card h1 {
  font-size: clamp(2rem, 7vw, 3rem);
  letter-spacing: -0.04em;
  margin: 0.2rem 0 1rem;
}

.atlas-auth-card p {
  color: #655c57;
  line-height: 1.55;
}

.atlas-auth-eyebrow {
  color: #c94f1e !important;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.atlas-auth-button,
.atlas-auth-link {
  border-radius: 0.35rem;
  display: inline-block;
  font: inherit;
  font-weight: 700;
  margin-top: 1rem;
  padding: 0.75rem 1rem;
}

.atlas-auth-button {
  background: #c94f1e;
  border: 1px solid #c94f1e;
  color: #fff;
  cursor: pointer;
}

.atlas-auth-button--secondary {
  background: #fff;
  color: #7b3013;
}

.atlas-auth-link {
  color: #7b3013;
}

.atlas-auth-actions {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.atlas-auth-actions form {
  display: inline;
}

.atlas-dashboard-shell {
  display: grid;
  grid-template-columns: 14.5rem minmax(0, 1fr);
  min-height: 100dvh;
}

.atlas-sidebar {
  background: #16181b;
  color: #f4f3f0;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  height: 100dvh;
  overflow-y: auto;
  padding: 1.5rem 1rem;
  position: sticky;
  top: 0;
}

.atlas-sidebar-brand {
  color: inherit;
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1.2;
  padding: 0 0.75rem;
  text-decoration: none;
  white-space: nowrap;
}

.atlas-sidebar-brand em {
  color: #c94f1e;
  font-style: italic;
}

.atlas-sidebar-nav a,
.atlas-sidebar-account a,
.atlas-sidebar-sign-out-button {
  background: transparent;
  border: 0;
  border-radius: 0.35rem;
  color: inherit;
  cursor: pointer;
  display: block;
  font: inherit;
  padding: 0.75rem 1rem;
  text-align: left;
  text-decoration: none;
}

.atlas-sidebar-nav a[aria-current="page"] {
  background: rgb(255 255 255 / 8%);
  border-left: 3px solid #c94f1e;
  font-weight: 700;
}

.atlas-sidebar-account {
  border-top: 1px solid rgb(244 243 240 / 18%);
  margin-top: auto;
  padding-top: 1rem;
}

.atlas-sidebar-account a:hover,
.atlas-sidebar-sign-out-button:hover {
  background: rgb(255 255 255 / 8%);
}

.atlas-sidebar-sign-out {
  margin: 0;
}

.atlas-sidebar-sign-out-button {
  width: 100%;
}

.atlas-dashboard-main {
  min-width: 0;
  padding: clamp(1.5rem, 3vw, 3rem);
}

@media (max-width: 40rem) {
  .atlas-dashboard-shell {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 1fr;
  }

  .atlas-sidebar {
    align-items: center;
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 1fr) auto;
    height: auto;
    padding: 1rem;
    position: static;
  }

  .atlas-sidebar-brand {
    font-size: 1.5rem;
    padding: 0;
  }

  .atlas-sidebar-nav {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .atlas-sidebar-account {
    align-items: center;
    border: 0;
    display: flex;
    font-size: 0.875rem;
    grid-column: 2;
    grid-row: 1;
    margin: 0;
    padding: 0;
  }

  .atlas-sidebar-account a,
  .atlas-sidebar-sign-out-button {
    padding: 0.5rem;
  }
}
