/* =========================================================
   Login page — standalone styles
   Loaded only by templates/auth/login.html.
   Inspired by login_page_design/code.html.
   ========================================================= */

/* Full-screen exterior photo background (was previously in public.css). */
body.login-page {
  min-height: 100vh;
  background:
    linear-gradient(rgba(5, 9, 21, 0.55), rgba(5, 9, 21, 0.55)),
    url("../img/ca2exterior.jpg") center center / cover no-repeat fixed;
}
body.login-page .navbar {
  display: none;
}

:root {
  --login-card-bg: #ffffff;
  --login-card-border: #e0e3e5;
  --login-text: #191c1e;
  --login-text-muted: #45464d;
  --login-input-bg: #ffffff;
  --login-input-border: #c6c6cd;
  --login-input-focus: #005d7f;
  --login-link: #005d7f;
  --login-link-hover: #003ea8;
  --login-button-bg: #000000;
  --login-button-bg-hover: #0b1c30;
  --login-button-text: #ffffff;
  --login-accent: #005d7f;
}

/* Neutralize layout_public.html's centered public shell on the login page.
   The login card owns its own full-viewport layout (and renders its own
   flash region), so strip the wrapper's padding/centering and hide the
   layout's app-flash-region for this page only. */
body.login-page .public-main {
  min-height: 0;
  padding: 0;
  display: block;
}
body.login-page .public-shell {
  max-width: none;
  gap: 0;
}
body.login-page .public-shell > .app-flash-region {
  display: none;
}

.login-shell {
  font-family: "Hanken Grotesk", system-ui, -apple-system, sans-serif;
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 16px;
  gap: 24px;
  box-sizing: border-box;
}

.login-card {
  background: var(--login-card-bg);
  border: 1px solid var(--login-card-border);
  border-radius: 0;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.04);
  padding: 48px;
  width: 100%;
  max-width: 28rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
}

.login-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}
.login-brand-logo {
  display: block;
  width: 220px;
  max-width: 100%;
  height: auto;
}
.login-brand-title {
  margin: 0;
  font-size: 32px;
  line-height: 40px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--login-text);
  text-align: center;
}
.login-brand-sub {
  margin: 0;
  font-size: 14px;
  line-height: 20px;
  color: var(--login-text-muted);
  text-align: center;
}

.login-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.login-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.login-label {
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--login-text);
}

.login-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.login-input-icon {
  position: absolute;
  left: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--login-text-muted);
  font-size: 20px;
  pointer-events: none;
}
.login-input {
  width: 100%;
  background: var(--login-input-bg);
  border: 1px solid var(--login-input-border);
  border-radius: 0.125rem;
  padding: 10px 12px 10px 40px;
  font-family: inherit;
  font-size: 14px;
  line-height: 20px;
  color: var(--login-text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  box-sizing: border-box;
}
.login-input:focus {
  outline: 0;
  border-color: var(--login-input-focus);
  box-shadow: 0 0 0 1px var(--login-input-focus);
}
.login-input::placeholder {
  color: #9ba0aa;
}

.login-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.login-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--login-text-muted);
  cursor: pointer;
}
.login-check input {
  width: 16px;
  height: 16px;
  accent-color: var(--login-accent);
  cursor: pointer;
}
.login-link {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--login-link);
  text-decoration: none;
}
.login-link:hover {
  color: var(--login-link-hover);
  text-decoration: none;
}

.login-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: var(--login-button-bg);
  color: var(--login-button-text);
  border: 0;
  border-radius: 0.125rem;
  padding: 14px 16px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
  transition: background-color 0.15s ease, transform 0.05s ease;
}
.login-button:hover {
  background: var(--login-button-bg-hover);
}
.login-button:active {
  transform: translateY(1px);
}
.login-button .material-symbols-outlined {
  font-size: 18px;
}

.login-aux {
  margin-top: 32px;
  text-align: center;
  font-size: 14px;
  color: var(--login-text-muted);
}
.login-aux a {
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--login-link);
}
.login-aux a:hover {
  color: var(--login-link-hover);
  text-decoration: none;
}

.login-footer {
  font-size: 11px;
  font-weight: 500;
  color: #e6e8ea;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
  text-align: center;
}

.login-flash {
  width: 100%;
  max-width: 28rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.login-alert {
  background: #ffdad6;
  color: #93000a;
  border: 1px solid rgba(186, 26, 26, 0.25);
  padding: 12px 16px;
  font-size: 14px;
  border-radius: 0.25rem;
}
.login-alert-success {
  background: #d4f0dc;
  color: #1d7f3a;
  border-color: rgba(29, 127, 58, 0.25);
}
.login-alert-info,
.login-alert-message,
.login-alert-primary {
  background: #dbe1ff;
  color: #0051d5;
  border-color: rgba(0, 81, 213, 0.25);
}
.login-alert-warning {
  background: #ffe7b8;
  color: #9a6500;
  border-color: rgba(154, 101, 0, 0.25);
}

.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
  vertical-align: middle;
}

@media (max-width: 480px) {
  .login-card {
    padding: 32px 24px;
  }
}
