/* ===== Esti Central — Sign In ===== */

/* Centered card. No sidebar/header on this page, so main-content's
   margin-left: var(--sidebar-width) (esti.css) does not apply here — this is
   a standalone layout, not a section of the shell. */
.esti-login-main {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
}

.esti-login-card {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-primary);
  border-radius: 1rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 380px;
}

[data-theme="dark"] .esti-login-card {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.esti-login-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.esti-login-logo img {
  height: 56px;
  width: auto;
}

.esti-login-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  margin: 0 0 0.5rem;
  letter-spacing: -0.01em;
}

.esti-login-subtitle {
  font-size: 0.875rem;
  color: var(--text-tertiary);
  text-align: center;
  margin: 0 0 1.5rem;
  line-height: 1.5;
}

.esti-login-status {
  margin-bottom: 1.25rem;
}

.esti-login-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.375rem;
}

.esti-login-hint {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  line-height: 1.4;
  margin: 0 0 0.375rem;
}

.esti-login-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-secondary);
  border-radius: 0.5rem;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  margin-bottom: 1rem;
  min-height: 44px;
  box-sizing: border-box;
}

.esti-login-input:focus {
  outline: 2px solid var(--brand-color);
  outline-offset: 1px;
  border-color: var(--brand-color);
}

.esti-login-button {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: var(--brand-color);
  color: #ffffff;
  border: none;
  border-radius: 0.5rem;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  min-height: 44px;
  transition: background-color 0.15s ease, opacity 0.15s ease;
}

.esti-login-button:hover:not(:disabled) {
  background-color: #d63847;
}

.esti-login-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.esti-login-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
  gap: 1rem;
}

.esti-login-link-btn {
  background: none;
  border: none;
  padding: 0;
  color: var(--brand-color);
  font-size: 0.8125rem;
  font-weight: 500;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
}

.esti-login-link-btn:hover {
  text-decoration: underline;
}

.esti-login-link-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  text-decoration: none;
}

/* ===== "Having trouble signing in?" modal =====
   Trigger rows sit under each step's form; the overlay/dialog markup lives
   once at the end of the page (see the page's comment on why the copy is
   identical for every visitor). Open/close/focus behavior in login.js. */

.esti-login-help-row {
  text-align: center;
  margin-top: 1rem;
}

.esti-help-overlay {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  z-index: 50;
}

[data-theme="dark"] .esti-help-overlay {
  background: rgba(0, 0, 0, 0.6);
}

.esti-help-overlay.hidden {
  display: none;
}

.esti-help-card {
  position: relative;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-primary);
  border-radius: 1rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
  padding: 1.5rem 1.5rem 1.25rem;
  width: 100%;
  max-width: 340px;
}

[data-theme="dark"] .esti-help-card {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.esti-help-dismiss {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-tertiary);
  font-size: 1.125rem;
  line-height: 1;
  padding: 0.25rem;
  font-family: 'Poppins', sans-serif;
}

.esti-help-dismiss:hover {
  color: var(--text-primary);
}

.esti-help-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 0.5rem;
  padding-right: 1.5rem;
}

.esti-help-body {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0 0 0.75rem;
}

.esti-help-steps {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.esti-help-steps li {
  margin-bottom: 0.375rem;
}

.esti-help-steps li:last-child {
  margin-bottom: 0;
}

.esti-help-body strong,
.esti-help-steps strong {
  color: var(--text-primary);
  font-weight: 600;
}

.esti-help-got-it {
  width: 100%;
  margin-top: 0.875rem;
  padding: 0.625rem 1rem;
  background-color: var(--brand-color);
  color: #ffffff;
  border: none;
  border-radius: 0.5rem;
  font-family: 'Poppins', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  min-height: 40px;
}

.esti-help-got-it:hover {
  background-color: #d63847;
}
