*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #f0f2f5;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 14px;
  color: #231f20;
  padding: 1.5rem 1rem;
}

/* ── Logo ── */
.logo-wrapper {
  margin-bottom: 1.75rem;
  text-align: center;
}

.logo-wrapper img {
  max-width: 480px;
  max-height: 160px;
  object-fit: contain;
}

/* ── Card ── */
.login-card {
  background: #ffffff;
  border: 1px solid #dde1e7;
  border-radius: 6px;
  padding: 2.25rem 2rem;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.login-card h1 {
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.25rem;
  color: #165da9;
}

.login-card .subtitle {
  text-align: center;
  font-size: 13px;
  color: #777;
  margin-bottom: 1.75rem;
}

/* ── Form ── */
.form-group {
  margin-bottom: 1rem;
}

label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.35rem;
}

input[type="text"],
input[type="password"] {
  width: 100%;
  padding: 6px 10px;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  color: #231f20;
  font-size: 14px;
  font-family: inherit;
  height: 34px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

input[type="text"]:focus,
input[type="password"]:focus {
  border-color: #165da9;
  box-shadow: 0 0 0 2px rgba(22, 93, 169, 0.15);
}

input[type="text"]::placeholder,
input[type="password"]::placeholder {
  color: #aaa;
}

/* ── Button ── */
.btn-submit {
  width: 100%;
  padding: 8px 16px;
  margin-top: 0.75rem;
  background-color: #44c767;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.15s, box-shadow 0.15s;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.btn-submit:hover {
  background-color: #3aaa5a;
  box-shadow: 0 2px 8px rgba(68, 199, 103, 0.35);
}

.btn-submit:active {
  background-color: #2f8f48;
}

.btn-submit.htmx-request {
  opacity: 0.65;
  cursor: not-allowed;
}

.htmx-indicator {
  display: none;
  text-align: center;
  font-size: 13px;
  color: #777;
  margin-top: 0.875rem;
}

.htmx-request ~ .htmx-indicator,
.htmx-request.htmx-indicator {
  display: block;
}

/* ── Response area ── */
#login-response {
  margin-top: 1rem;
  min-height: 1.5rem;
  font-size: 13px;
  text-align: center;
}

.error-msg {
  color: #8C1919;
}

/* ── Account suspended notice ── */
.account-notice {
  background: #fff5f5;
  border: 1px solid #f5c6c6;
  border-radius: 4px;
  color: #8C1919;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  padding: 0.75rem 1rem;
  margin-bottom: 1.25rem;
  text-align: center;
}

/* ── Forgot page tabs ── */
.forgot-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.forgot-tab {
  flex: 1;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  border: 2px solid #165da9;
  border-radius: 4px;
  cursor: pointer;
  background: #fff;
  color: #165da9;
  transition: background-color 0.15s, color 0.15s;
}

.forgot-tab.active,
.forgot-tab:hover {
  background: #165da9;
  color: #fff;
}

.forgot-panel { display: none; }
.forgot-panel.active { display: block; }

.forgot-success {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 4px;
  color: #0369a1;
  font-size: 13px;
  padding: 0.75rem 1rem;
  margin-top: 0.75rem;
}

@media (max-width: 480px) {
  .login-card {
    padding: 1.75rem 1.25rem;
  }
}
