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

body {
  margin: 0;
}

.auth-page {
  align-items: center;
  background: #f5f7fa;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem 1.25rem;
}

.auth-card {
  background: #fff;
  border: 1px solid #e2e7ee;
  border-radius: 0.75rem;
  box-shadow: 0 1rem 3rem rgb(28 36 52 / 8%);
  box-sizing: border-box;
  max-width: 26rem;
  padding: 2.5rem;
  width: 100%;
}

.auth-brand {
  color: #53627a;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  margin: 0 0 0.75rem;
  text-transform: uppercase;
}

.auth-card h1 {
  font-size: 1.75rem;
  letter-spacing: -0.03em;
  margin: 0;
}

.auth-subtitle {
  color: #647086;
  line-height: 1.5;
  margin: 0.5rem 0 2rem;
}

.auth-field {
  margin-bottom: 1.25rem;
}

.auth-field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.auth-field input[type="email"],
.auth-field input[type="password"] {
  border: 1px solid #c9d1dc;
  border-radius: 0.5rem;
  box-sizing: border-box;
  font: inherit;
  padding: 0.75rem 0.875rem;
  width: 100%;
}

.auth-field input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgb(37 99 235 / 14%);
  outline: none;
}

.auth-checkbox {
  align-items: center;
  display: flex;
  font-size: 0.875rem;
  gap: 0.5rem;
  margin: -0.25rem 0 1.5rem;
}

.auth-checkbox input,
.auth-checkbox label {
  margin: 0;
}

.auth-submit {
  background: #1d4ed8;
  border: 0;
  border-radius: 0.5rem;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  padding: 0.8rem 1rem;
  width: 100%;
}

.auth-submit:hover {
  background: #1e40af;
}

.auth-footer {
  border-top: 1px solid #e8ecf1;
  font-size: 0.875rem;
  margin: 1.75rem 0 0;
  padding-top: 1.25rem;
  text-align: center;
}

.auth-footer a {
  color: #1d4ed8;
  font-weight: 600;
}

.auth-alert,
#error_explanation {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  border-radius: 0.5rem;
  color: #9f1239;
  font-size: 0.875rem;
  margin: 0 0 1.5rem;
  padding: 0.75rem;
}

#error_explanation h2 {
  font-size: 0.875rem;
  margin-top: 0;
}

#error_explanation ul {
  margin-bottom: 0;
  padding-left: 1.25rem;
}

.auth-hint {
  color: #647086;
  font-size: 0.8125rem;
  margin: -0.25rem 0 0.5rem;
}

@media (max-width: 480px) {
  .auth-page {
    align-items: flex-start;
    padding: 1rem;
  }

  .auth-card {
    padding: 1.75rem;
  }
}
