/* ==========================================================================
   KEEL WEBSITE ACCOUNTS & AUXILIARY PAGES
   Cohesive Haute-Institutional Design System
   ========================================================================== */

.account-page {
  min-height: 100vh;
  background: var(--paper-bg, #f8faf8);
  display: flex;
  flex-direction: column;
  color: var(--ink-800, #13323b);
  font-family: var(--font-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
}

.account-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px max(6vw, 24px);
  background: rgba(7, 28, 39, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.account-header .brand {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.035em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.account-header .brand img {
  filter: drop-shadow(0 0 8px rgba(140, 232, 207, 0.4));
}

.account-header > a:last-child {
  font-size: 13px;
  font-weight: 550;
  color: var(--teal-400, #8ce8cf);
  transition: color 0.2s ease;
}

.account-header > a:last-child:hover {
  color: #ffffff;
}

.account-main {
  width: min(860px, 100%);
  padding: 56px 24px 80px;
  margin: auto;
  flex: 1;
}

.account-main > h1 {
  font-size: clamp(34px, 4.5vw, 52px);
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--ink-900, #0a1f26);
  margin-bottom: 16px;
}

.account-main > .eyebrow {
  font-family: var(--font-mono, monospace);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--teal-700, #168d74);
  text-transform: uppercase;
  margin-bottom: 16px;
  display: block;
}

.account-intro {
  color: var(--ink-muted, #526f77);
  font-size: 15.5px;
  line-height: 1.75;
  max-width: 560px;
  margin-bottom: 36px;
}

.account-card {
  border: 1px solid var(--line-light, rgba(19, 50, 59, 0.1));
  background: #ffffff;
  border-radius: 14px;
  padding: 36px;
  margin-bottom: 24px;
  max-width: 560px;
  box-shadow: 0 4px 20px -2px rgba(11, 32, 39, 0.05);
}

.account-card label {
  display: block;
  font-size: 13px;
  font-weight: 650;
  color: var(--ink-900, #0a1f26);
  margin-bottom: 8px;
}

.account-card input,
.account-card textarea {
  width: 100%;
  padding: 13px 15px;
  font-size: 14.5px;
  background: #fafcfb;
  border: 1px solid #c9d8d2;
  border-radius: 8px;
  color: var(--ink-900, #0a1f26);
  margin-bottom: 8px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.account-card input:focus,
.account-card textarea:focus {
  outline: none;
  background: #ffffff;
  border-color: var(--teal-700, #168d74);
  box-shadow: 0 0 0 3px rgba(140, 232, 207, 0.35);
}

.account-card textarea {
  font-family: var(--font-mono, monospace);
  resize: vertical;
  font-size: 13.5px;
  line-height: 1.6;
  word-break: break-all;
  background: #f1f6f4;
  border-color: #b7ceca;
}

.field-hint {
  color: var(--ink-subtle, #7a979e);
  font-size: 11.5px;
  line-height: 1.7;
  margin: 0 0 22px;
}

.account-submit {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  margin: 12px 0 20px;
  min-height: 48px;
  justify-content: center;
  background: linear-gradient(135deg, #134c4e 0%, #0d383a 100%);
  color: #ffffff !important;
  border-radius: 8px;
  font-weight: 650;
  font-size: 14px;
  letter-spacing: -0.01em;
  box-shadow: 0 4px 14px rgba(19, 76, 78, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.account-submit:hover {
  background: linear-gradient(135deg, #1a6265 0%, #124b4d 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(19, 76, 78, 0.35);
}

.form-switch {
  font-size: 12.5px;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin: 12px 0 0;
  line-height: 1.7;
  color: var(--ink-muted, #526f77);
}

.form-switch a,
.operator-link a {
  color: var(--teal-700, #168d74);
  text-decoration: underline;
  text-underline-offset: 4px;
  font-weight: 600;
  transition: color 0.2s ease;
}

.form-switch a:hover,
.operator-link a:hover {
  color: var(--teal-900, #0a4639);
}

.form-alert {
  padding: 14px 18px;
  background: #fdf2ed;
  color: #923422;
  border: 1px solid #f2cfc6;
  border-left: 3px solid #d44c33;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.7;
  margin-bottom: 24px;
}

.operator-link {
  max-width: 560px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 11.5px;
  line-height: 1.8;
  color: var(--ink-subtle, #7a979e);
}

.account-label {
  font-family: var(--font-mono, monospace);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--teal-700, #168d74);
  margin-bottom: 24px;
  background: #eaf4f0;
  display: inline-block;
  padding: 3px 10px;
  border-radius: 4px;
}

.onboarding-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.onboarding-grid .account-card {
  margin: 0;
  max-width: none;
  padding: 32px;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.onboarding-grid .account-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -4px rgba(11, 32, 39, 0.08);
}

.onboarding-grid h2 {
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.03em;
  margin: 20px 0 12px;
  color: var(--ink-900, #0a1f26);
}

.onboarding-grid p,
.information-page p {
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--ink-muted, #526f77);
  margin-bottom: 0;
}

.pending {
  color: #8c6422;
  background: #fbf6ec;
  border: 1px solid #ebd9b8;
  white-space: normal;
  line-height: 1.5;
}

.account-actions {
  margin-top: 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
  font-size: 13.5px;
  font-weight: 550;
}

.account-actions a {
  color: var(--teal-700, #168d74);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.account-actions > form > button {
  background: #ffffff;
  border: 1px solid #c9d8d2;
  color: var(--ink-700, #254650);
  padding: 9px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
}

.account-actions > form > button:hover {
  background: #f4f8f6;
  border-color: #a8c4bb;
  color: var(--ink-900, #0a1f26);
}

.account-footer {
  padding: 24px max(6vw, 24px);
  display: flex;
  gap: 28px;
  font-size: 11px;
  border-top: 1px solid var(--line-light, rgba(19, 50, 59, 0.08));
  color: var(--ink-subtle, #7a979e);
  line-height: 1.8;
  background: #ffffff;
}

.account-footer a {
  color: var(--ink-muted, #526f77);
  transition: color 0.2s ease;
}

.account-footer a:hover {
  color: var(--teal-700, #168d74);
}

.account-footer > span {
  margin-left: auto;
}

.information-page {
  max-width: 680px;
}

.information-page h2 {
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.03em;
  margin: 32px 0 12px;
  color: var(--ink-900, #0a1f26);
}

.information-page p {
  margin-bottom: 18px;
}

.information-page a {
  text-decoration: underline;
  text-underline-offset: 4px;
  color: var(--teal-700, #168d74);
  font-weight: 550;
}

.information-page ul {
  padding-left: 20px;
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--ink-muted, #526f77);
  margin-bottom: 20px;
}

@media (max-width: 640px) {
  .account-main {
    padding: 40px 20px 60px;
  }
  .account-card {
    padding: 24px;
  }
  .onboarding-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .onboarding-grid .account-card {
    padding: 24px;
  }
  .account-footer {
    flex-wrap: wrap;
    gap: 16px;
    padding-inline: 20px;
  }
  .account-footer > span {
    width: 100%;
    margin-left: 0;
  }
}
