/*
 * 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: #17211f;
  background: #f7f8f7;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  box-sizing: border-box;
  max-width: 42rem;
  margin: 0 auto;
  padding: clamp(1.25rem, 4vw, 2.5rem);
}

input,
button,
select {
  box-sizing: border-box;
  min-height: 2.75rem;
  border: 1px solid #9ca8a5;
  border-radius: 6px;
  padding: 0.65rem 0.75rem;
  font: inherit;
}

input[type="email"],
input[type="password"],
input[type="text"] {
  width: 100%;
}

input[type="submit"],
button {
  border-color: #176b5b;
  background: #176b5b;
  color: white;
  cursor: pointer;
}

form {
  display: grid;
  gap: 0.75rem;
}

.auth-method {
  margin-block: 1rem;
}

.auth-method h2 {
  margin-bottom: 0.625rem;
  font-size: 1rem;
}

.auth-method--password {
  border-top: 1px solid #d8dddb;
  padding-top: 1rem;
}

.auth-method--password summary {
  margin-bottom: 1rem;
  cursor: pointer;
  font-weight: 600;
}

.auth-message {
  border-left: 3px solid currentColor;
  padding: 0.75rem;
}

.auth-message--error {
  color: #a22a2a;
  background: #fff2f2;
}

.auth-message--success {
  color: #176b5b;
  background: #eef8f5;
}
