/*
 * 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.
 */

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #1a1a2e;
  line-height: 1.5;
}

.flash {
  padding: 0.75rem 1rem;
  text-align: center;
  font-size: 0.95rem;
}
.flash--notice { background: #e6f4ea; color: #1e4620; }
.flash--alert  { background: #fbe9e7; color: #611a15; }

.button {
  display: inline-block;
  padding: 0.65rem 1.4rem;
  border: 0;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.button--primary { background: #4338ca; color: #fff; }
.button--primary:hover { background: #3730a3; }

.landing {
  max-width: 720px;
  margin: 0 auto;
  padding: 6rem 1.5rem;
  text-align: center;
}
.landing__hero h1 { font-size: 3rem; margin: 0 0 1rem; }
.landing__tagline { font-size: 1.25rem; color: #4a4a68; margin: 0 0 2rem; }

.auth {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.25rem;
  background:
    radial-gradient(1100px 520px at 12% -8%, #eef0ff 0%, rgba(238, 240, 255, 0) 60%),
    radial-gradient(900px 480px at 100% 0%, #efe9ff 0%, rgba(239, 233, 255, 0) 55%),
    linear-gradient(180deg, #f7f8fc 0%, #eef0f8 100%);
}

.auth__card {
  margin: auto;
  width: 100%;
  max-width: 400px;
  background: #fff;
  border: 1px solid #e6e8f0;
  border-radius: 18px;
  padding: 2.5rem 2.25rem 2.25rem;
  box-shadow: 0 24px 55px -28px rgba(24, 27, 63, 0.45);
}

.auth__brand { text-align: center; margin-bottom: 1.75rem; }
.auth__logo { height: 68px; width: auto; margin-bottom: 1.1rem; }
.auth__brand h1 { margin: 0 0 0.35rem; font-size: 1.6rem; letter-spacing: -0.02em; color: #0f1226; }
.auth__subtitle { margin: 0; color: #6b7189; font-size: 0.95rem; }

.auth__form .field { margin-bottom: 1.1rem; }
.auth__form label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
  font-size: 0.85rem;
  color: #3a3f57;
}

.field__control { position: relative; }
.field__icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: #9aa0b5;
  pointer-events: none;
  transition: color 0.15s ease;
}
.auth__form .field__control input {
  width: 100%;
  padding: 0.7rem 0.85rem 0.7rem 2.6rem;
  border: 1px solid #d7dae6;
  border-radius: 10px;
  font-size: 1rem;
  background: #fbfbfe;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.auth__form .field__control input::placeholder { color: #aab0c2; }
.auth__form .field__control input:focus {
  outline: 0;
  border-color: #7c6cf5;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(124, 108, 245, 0.18);
}
.field__control:focus-within .field__icon { color: #4338ca; }

.auth__submit {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.8rem 1.4rem;
  background: linear-gradient(135deg, #4338ca 0%, #6d5df3 100%);
  box-shadow: 0 14px 26px -14px rgba(67, 56, 202, 0.85);
  transition: transform 0.06s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.auth__submit:hover { filter: brightness(1.05); box-shadow: 0 16px 30px -14px rgba(67, 56, 202, 0.95); }
.auth__submit:active { transform: translateY(1px); }

.auth__divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.3rem 0;
  color: #9aa0b5;
  font-size: 0.82rem;
}
.auth__divider::before,
.auth__divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e6e8f0;
}

/* button_to renders a <form>; keep it from adding vertical space. */
.auth form.button_to { margin: 0; }
.auth__sso {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #d7dae6;
  border-radius: 10px;
  background: #fff;
  color: #1a1d21;
  font-size: 0.98rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.auth__sso:hover { background: #f7f8fc; border-color: #c3c8d6; box-shadow: 0 4px 12px -6px rgba(24, 27, 63, 0.25); }
.auth__sso:active { transform: translateY(1px); }

.auth__foot { margin: 1.4rem 0 0; text-align: center; font-size: 0.9rem; }
.auth__foot a { color: #4338ca; font-weight: 600; text-decoration: none; }
.auth__foot a:hover { text-decoration: underline; }

.auth__meta {
  display: flex;
  justify-content: flex-end;
  margin: -0.4rem 0 1rem;
}
.auth__meta a { color: #6b7189; font-size: 0.85rem; text-decoration: none; }
.auth__meta a:hover { color: #4338ca; text-decoration: underline; }

.auth__errors {
  margin-bottom: 1.1rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid #f3c2c2;
  background: #fdecec;
  border-radius: 10px;
  color: #8a1f1f;
  font-size: 0.9rem;
}
.auth__errors ul { margin: 0; padding-left: 1.1rem; }
