/* ===== Login Page Styles ===== */

body.login-page {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #2C2825 url('/assets/images/background/redwood_bg_1x.jpg') center/cover no-repeat fixed;
  padding: 24px;
  overflow-x: hidden;
}

.login-card {
  width: 100%;
  max-width: 400px;
  background: var(--rw-surface-cloud);
  border-radius: 0;
  padding: 40px 32px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.login-logo {
  text-align: center;
  margin-bottom: 32px;
}
.login-logo img {
  width: 100%;
  max-width: 240px;
  height: auto;
  margin-bottom: 16px;
}
.login-logo h2 {
  font-size: 24px;
  line-height: 32px;
  font-weight: 700;
  color: #161513;
  margin: 0 0 4px 0;
}
.login-logo p {
  font-size: 13.75px;
  line-height: 16px;
  color: rgba(22, 21, 19, 0.7);
  margin: 0;
}

.login-error {
  padding: 12px 16px;
  margin-bottom: 16px;
  background: #fdeceb;
  border: 1px solid #f0aea8;
  border-radius: 0;
  color: #9a261a;
  font-size: 13.75px;
  line-height: 16px;
  text-align: center;
}

.form-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  margin-bottom: 24px;
}
.checkbox-group { display: flex; gap: 16px; }

.forgot-link {
  font-family: var(--rw-font-family);
  font-size: 12px;
  line-height: 16px;
  color: #161513;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}
.forgot-link:hover { color: #227e9e; }

.btn-login {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--rw-font-family);
  font-size: 13.75px;
  font-weight: 600;
  line-height: 16px;
  color: #ffffff;
  background: #312d2a;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: background 150ms ease-in-out;
}
.btn-login:hover { background: #1f1c1a; }
.btn-login:active { background: #0a0908; }

.login-footer {
  margin-top: 24px;
  text-align: center;
}
.login-footer .notice {
  font-size: 12px;
  line-height: 16px;
  color: rgba(22, 21, 19, 0.7);
  margin: 0 0 8px 0;
}
.login-footer .copyright {
  font-size: 10px;
  line-height: 12px;
  color: rgba(22, 21, 19, 0.5);
  margin: 0;
}

.login-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(22, 21, 19, 0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.login-modal-overlay.show { display: flex; }

.login-modal-card {
  background: var(--rw-surface-cloud);
  border-radius: 0;
  box-shadow: 0 8px 24px rgba(22, 21, 19, 0.2);
  width: calc(100% - 32px);
  max-width: 400px;
  overflow: hidden;
}
.login-modal-head {
  padding: 24px 24px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.login-modal-head h3 {
  font-size: 20px;
  line-height: 28px;
  font-weight: 700;
  color: #161513;
  margin: 0;
}
.login-modal-close {
  width: 32px; height: 32px;
  border: none; background: transparent;
  font-size: 20px; color: #161513;
  cursor: pointer; border-radius: 0;
  display: flex; align-items: center; justify-content: center;
}
.login-modal-close:hover { background: rgba(22, 21, 19, 0.08); }
.login-modal-body { padding: 16px 24px; }
.login-modal-body p {
  font-size: 13.75px;
  line-height: 16px;
  color: rgba(22, 21, 19, 0.7);
  margin: 0 0 16px 0;
}
.login-modal-actions {
  padding: 16px 24px 24px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

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