/*
 * Mealorama — Authentication Page Styles
 * Precision Pattern Engineering
 */

body {
  font-family: 'Inter', 'Source Sans 3', system-ui, sans-serif;
}

.auth {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  min-height: 100vh;
  font-family: 'Inter', 'Source Sans 3', system-ui, sans-serif;
  padding: 48px 32px;
}

/* Brand mark above login form */
.auth::before {
  content: '';
  display: block;
  width: 240px;
  height: 77px;
  background-image: url('../images/meal-o-rama-big.png');
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  margin: 0 auto 4px auto;
}

/* Tagline */
.auth::after {
  content: 'Drafted to Specification.';
  display: block;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #B08A3E;
  margin-bottom: 32px;
  text-align: center;
}

.auth h1 {
  font-family: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  font-size: 1.625rem;
  font-weight: 700;
  color: #F5F3EE;
  text-align: center;
  letter-spacing: 0.01em;
  line-height: 1.2;
  margin-top: 0;
  margin-bottom: 4px;
}

.auth h2,
.auth h3 {
  font-family: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  font-weight: 700;
  color: #F5F3EE;
  text-align: center;
  line-height: 1.3;
  margin-top: 0;
}

.auth .instructions {
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: #D8D6D0;
  margin-top: 6px;
  margin-bottom: 24px;
}

.auth form {
  background-color: #182438;
  width: 420px;
  max-width: calc(100vw - 32px);
  padding: 32px;
  border: 1px solid #2F4F6F;
  border-radius: 2px;
  margin: 0 auto;
}

.auth button {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #F5F3EE;
  background-color: #0F1A2B;
  border: 1px solid #B08A3E;
  border-radius: 2px;
  padding: 10px 20px;
  width: 100%;
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  margin-top: 24px;
  margin-bottom: 8px;
  transition: background-color 150ms ease, border-color 150ms ease;
  line-height: 1.5;
}

.auth button:hover {
  background-color: #2F4F6F;
  border-color: #B08A3E;
}

.auth input {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.9375rem;
  color: #F5F3EE;
  background-color: rgba(15, 26, 43, 0.7);
  border: 1px solid #2F4F6F;
  border-radius: 2px;
  width: 100%;
  padding: 8px 12px;
  line-height: 1.5;
  outline: none;
  transition: border-color 150ms ease;
  box-sizing: border-box;
}

.auth input:focus {
  border-color: #B08A3E;
}

.auth input:hover:not(:focus) {
  border-color: #4a6f8f;
}

.auth input::placeholder {
  color: #D8D6D0;
  opacity: 0.5;
}

.auth label {
  display: block;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #D8D6D0;
  margin-top: 20px;
  margin-bottom: 6px;
  line-height: 1.4;
}

.auth a {
  color: #B08A3E;
  text-decoration: none;
  transition: color 150ms ease;
}

.auth a:hover {
  color: #D8D6D0;
}

.auth .other-instructions {
  text-align: center;
  display: block;
  padding: 16px 0;
  font-size: 0.8125rem;
  color: #D8D6D0;
  line-height: 1.5;
}

/* ============================================================
 * OAuth Styles
 * ============================================================ */

.auth-oauth-section {
  margin-top: 0;
  margin-bottom: 24px;
  text-align: center;
}

.auth-oauth-divider {
  position: relative;
  text-align: center;
  margin: 24px 0;
  color: #D8D6D0;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.auth-oauth-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #2F4F6F;
  z-index: 0;
}

.auth-oauth-divider span {
  background: #182438;
  padding: 0 16px;
  position: relative;
  z-index: 1;
}

.auth-oauth-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 10px 16px;
  background-color: #0F1A2B;
  color: #F5F3EE;
  border: 1px solid #2F4F6F;
  border-radius: 2px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 150ms ease, border-color 150ms ease;
  margin-bottom: 10px;
}

.auth-oauth-button:hover {
  background-color: #2F4F6F;
  border-color: #B08A3E;
}

.auth-oauth-button svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

.auth-oauth-button-google {
  border-color: #B08A3E;
  padding: 12px 20px;
  font-size: 0.9375rem;
  font-weight: 500;
}

.auth-oauth-button-google:hover {
  background-color: #2F4F6F;
  border-color: #B08A3E;
}

.auth-oauth-button-google svg {
  width: 20px;
  height: 20px;
}

.auth-error-message {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.8125rem;
  background-color: rgba(139, 32, 32, 0.12);
  color: #e07070;
  border: 1px solid rgba(139, 32, 32, 0.4);
  border-radius: 2px;
  padding: 10px 14px;
  margin-bottom: 16px;
  text-align: center;
}

/* ============================================================
 * Responsive
 * ============================================================ */

@media (max-width: 480px) {
  .auth form {
    width: 100%;
    padding: 24px 16px;
  }

  .auth-oauth-button {
    font-size: 0.8125rem;
    padding: 10px 12px;
  }
}
