/* Account and authentication UI for hosted eLoadX. */

.topnav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-login,
.nav-account {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 17px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
}

.nav-login {
  color: #fff !important;
  background: #0c66bd;
  box-shadow: 0 6px 18px rgba(12, 102, 189, .18);
}

.nav-login:hover { background: #085aa9; }
.nav-account { color: #123a63 !important; background: #edf5fc; }
.nav-account:hover { background: #e2eef9; }

.nav-user-email {
  max-width: 230px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #536b83;
  font-size: .9rem;
}

.nav-form { margin: 0; }
.nav-signout {
  border: 0;
  background: transparent;
  color: #435e77;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  padding: 8px 0;
}
.nav-signout:hover { color: #0c66bd; }

.footer-tech {
  margin-top: 5px;
  font-size: .78rem;
}
.footer-tech a { color: #667f98; }

.button-primary,
.button-secondary,
.auth-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 10px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}

.button-primary,
.auth-primary {
  border: 1px solid #0c66bd;
  background: #0c66bd;
  color: #fff !important;
  box-shadow: 0 8px 22px rgba(12, 102, 189, .18);
}

.button-primary:hover,
.auth-primary:hover {
  background: #085aa9;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(12, 102, 189, .24);
}

.button-secondary {
  border: 1px solid #b9cade;
  background: #fff;
  color: #183d62 !important;
}
.button-secondary:hover { background: #f3f7fb; }

.secure-cta-card { overflow: hidden; }
.secure-cta {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 8px 2px;
}
.secure-cta-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: #e8f8f1;
  color: #14865e;
  font-size: 1.4rem;
  font-weight: 900;
}
.secure-cta-copy h2 { margin: 3px 0 8px; }
.secure-cta-copy p { margin: 0; max-width: 720px; color: #536b83; }
.eyebrow.dark { color: #0c66bd; }
.secure-cta-points {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 16px;
  margin-top: 14px;
  color: #385773;
  font-size: .85rem;
}
.secure-cta-points span::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: #22a879;
}
.secure-cta-actions {
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-width: 150px;
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .7fr);
  gap: 28px;
  max-width: 980px;
  margin: 52px auto 70px;
  align-items: stretch;
}

.auth-panel,
.auth-card {
  border: 1px solid #d8e2ec;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 16px 42px rgba(28, 60, 91, .08);
}

.auth-copy-panel {
  padding: 46px;
  background:
    radial-gradient(circle at 90% 10%, rgba(44, 177, 219, .14), transparent 34%),
    linear-gradient(145deg, #f8fbfe, #eef5fb);
}
.auth-copy-panel h1 {
  margin: 8px 0 16px;
  color: #0b2341;
  font-size: clamp(2rem, 3vw, 2.65rem);
  line-height: 1.06;
}
.auth-lead { color: #49647e; font-size: 1.03rem; line-height: 1.65; }
.auth-trust-list { display: grid; gap: 16px; margin-top: 32px; }
.auth-trust-list > div {
  padding: 16px 17px;
  border: 1px solid #dbe6f0;
  border-radius: 14px;
  background: rgba(255,255,255,.7);
}
.auth-trust-list strong { display: block; color: #153d63; margin-bottom: 4px; }
.auth-trust-list span { display: block; color: #667d92; font-size: .9rem; line-height: 1.45; }

.auth-card { padding: 38px; }
.auth-card-head h2 { margin: 0 0 8px; font-size: 1.55rem; color: #0b2341; }
.auth-card-head p { margin: 0 0 26px; color: #62798e; line-height: 1.45; }
.auth-form { display: grid; gap: 10px; }
.auth-form label { color: #244865; font-weight: 750; font-size: .9rem; margin-top: 6px; }
.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="text"] {
  width: 100%;
  box-sizing: border-box;
  min-height: 46px;
  border: 1px solid #c8d6e4;
  border-radius: 10px;
  padding: 10px 12px;
  background: #fff;
  color: #102f4e;
  font: inherit;
  outline: none;
}
.auth-form input:focus {
  border-color: #2b79c7;
  box-shadow: 0 0 0 3px rgba(43,121,199,.12);
}
.auth-primary { width: 100%; margin-top: 12px; font: inherit; }
.auth-field-note { margin: -2px 0 5px; color: #71869a; font-size: .8rem; }
.auth-switch {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #e3eaf1;
  color: #62798e;
  text-align: center;
  font-size: .9rem;
}
.auth-switch a { margin-left: 5px; font-weight: 800; color: #0c66bd; }
.auth-message,
.auth-error {
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 18px;
  font-size: .9rem;
  line-height: 1.45;
}
.auth-message { background: #ecf8f3; border: 1px solid #ccebdd; color: #176848; }
.auth-error { background: #fff2f2; border: 1px solid #f0cece; color: #8b3030; }

.account-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin: 38px 0 22px;
}
.account-header h1 { margin: 5px 0 7px; color: #0b2341; font-size: 2.15rem; }
.account-header p { margin: 0; color: #61788e; }
.account-message { margin: 0 0 18px; }
.account-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 20px;
  align-items: start;
  margin-bottom: 56px;
}
.account-jobs-card { min-width: 0; }
.account-section-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: start;
  margin-bottom: 20px;
}
.account-section-head h2,
.account-profile-card h2 { margin-top: 0; }
.account-section-head p { margin: 5px 0 0; }
.account-count {
  white-space: nowrap;
  border-radius: 999px;
  padding: 6px 10px;
  background: #edf5fc;
  color: #315878;
  font-size: .8rem;
  font-weight: 750;
}
.account-table strong { color: #153a5d; }
.account-job-id { max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.account-delete-cell { text-align: right; }
.account-empty {
  padding: 46px 24px;
  text-align: center;
  border: 1px dashed #c8d7e5;
  border-radius: 14px;
  background: #f8fbfd;
}
.account-empty h3 { margin-top: 0; }
.account-empty p { color: #61788e; margin-bottom: 20px; }
.account-profile-card { position: sticky; top: 90px; }
.account-email-label { margin: 0 0 3px; }
.account-email { margin: 0 0 22px; overflow-wrap: anywhere; color: #173d61; font-weight: 750; }
.account-profile-form { margin-bottom: 22px; }
.account-save { width: 100%; margin-top: 6px; font: inherit; }
.account-security-note {
  border-radius: 12px;
  padding: 14px;
  background: #f1f7fb;
  color: #4d667d;
  font-size: .84rem;
  line-height: 1.45;
}
.account-security-note strong { color: #244967; }
.account-security-note p { margin: 5px 0 0; }
.account-signout-form { margin-top: 18px; }
.account-signout {
  width: 100%;
  border: 1px solid #d4dfe9;
  border-radius: 10px;
  background: #fff;
  min-height: 40px;
  color: #536b83;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}
.account-signout:hover { background: #f5f8fb; }

@media (max-width: 860px) {
  .recovery-shell .auth-card { grid-row: 1; }
  .nav-user-email { display: none; }
  .auth-shell { grid-template-columns: 1fr; margin-top: 28px; }
  .auth-copy-panel { padding: 32px; }
  .account-grid { grid-template-columns: 1fr; }
  .account-profile-card { position: static; }
  .secure-cta { grid-template-columns: auto 1fr; }
  .secure-cta-actions { grid-column: 1 / -1; flex-direction: row; }
  .secure-cta-actions > * { flex: 1; }
}

@media (max-width: 620px) {
  .topnav { gap: 10px; }
  .nav-account { padding: 0 11px; }
  .nav-signout { font-size: .86rem; }
  .secure-cta { grid-template-columns: 1fr; }
  .secure-cta-icon { width: 46px; height: 46px; }
  .secure-cta-actions { grid-column: auto; flex-direction: column; }
  .auth-card, .auth-copy-panel { padding: 24px; border-radius: 16px; }
  .auth-shell { grid-template-columns: minmax(0, 1fr); }
  .account-header { align-items: stretch; flex-direction: column; }
  .account-header .button-primary { width: 100%; box-sizing: border-box; }
}
