/*
 * Shared AGC entry and account-recovery screens, scoped by the account helper.
 * Preserve override order against the shared aetherOS portal theme.
 */
html.agc-account {
  --bg: #0b1822;
  --panel: #11252f;
  --panel2: #1a333e;
  --line: #36505a;
  --text: #f1f7f8;
  --muted: #b6cbd1;
  --accent: #315f72;
  --accent2: #76aeb5;
  --arc-panel: #11252f;
  --arc-panel-2: #1a333e;
  --arc-line: #36505a;
  --arc-text: #f1f7f8;
  --arc-text-soft: #b6cbd1;
  color-scheme: dark;
}

html.agc-account, .agc-account body {
  background: #0b1822;
  color: var(--text);
}

.agc-account .portal-panel, .agc-account .portal-maincard, .agc-account .portal-sidecard {
  background: linear-gradient(145deg,#152c37,#10212b);
  border: 1px solid #36505a;
  border-radius: 22px;
  box-shadow: 0 18px 50px #0003;
}

.agc-account .portal-title, .agc-account .portal-brand-title {
  color: #f1f7f8;
}

.agc-account .portal-subtitle, .agc-account .portal-auth-copy, .agc-account .portal-help,
.agc-account .portal-note {
  color: #b6cbd1;
}

.agc-account .portal-input {
  background: #0b1c25;
  color: #f1f7f8;
  border: 1px solid #47616b;
  font-size: 16px;
}

.agc-account .portal-input::placeholder {
  color: #99b4bd;
}

.agc-account .portal-btn-accent {
  background: linear-gradient(100deg,#315f72,#669aa5);
  color: #fff;
  border-color: #7aadb4;
}

.agc-account .portal-btn-ghost, .agc-account .portal-note {
  background: #18313c;
  border-color: #395661;
}

.agc-account a {
  color: #a8dfe3;
}

.agc-account :focus-visible {
  outline: 3px solid #a8dfe3;
  outline-offset: 3px;
}

.agc-account .portal-status {
  color: #dceef1;
  background: #1a3540;
  border-color: #456775;
}

.agc-account .portal-status.bad {
  background: #401d29;
  color: #ffe2e8;
  border-color: #d27c91;
}

.agc-account .portal-status.warn {
  background: #3e3422;
  color: #fff0c6;
  border-color: #af975a;
}

.agc-account .agc-recovery-note {
  margin: 14px 0;
  padding: 12px 14px;
  border: 1px solid #547b88;
  border-radius: 12px;
  color: #d8e9ee;
  background: #172e39;
  font-size: 14px;
  line-height: 1.5;
}

/* Compact entry layout keeps account forms and recovery controls within view. */
@media(max-width:760px) {
  .agc-account .portal-shell {
    padding: 12px;
    align-items: flex-start;
  }

  .agc-account .portal-panel {
    width: 100%!important;
    padding: 18px;
  }

  .agc-account .portal-split-panel {
    padding: 0;
    gap: 14px;
  }

  .agc-account .portal-maincard, .agc-account .portal-sidecard {
    padding: 20px;
  }

  .agc-account .agc-entry-hero {
    display: flex!important;
    flex-direction: row;
    gap: 14px;
    text-align: left;
    padding: 10px 0!important;
    min-height: 0!important;
  }

  .agc-account .agc-entry-hero .aether-brand-art {
    width: 76px!important;
    min-width: 76px;
    height: 76px!important;
    flex: 0 0 76px;
  }

  .agc-account .agc-entry-hero .aether-brand-image {
    width: 76px!important;
    height: 76px!important;
    max-height: 76px!important;
    border-radius: 50%;
  }

  .agc-account .agc-entry-hero .aether-brand-copy {
    min-width: 0;
  }

  .agc-account .agc-entry-hero .portal-brand-title {
    font-size: 24px!important;
    line-height: 1.1;
  }

  .agc-account .agc-entry-copy {
    display: none;
  }

  .agc-account .agc-entry-panel {
    margin: 0!important;
  }

  .agc-account .agc-entry-panel .portal-actions {
    gap: 8px;
  }

  .agc-account .agc-entry-panel .portal-note-list {
    margin-top: 12px!important;
  }
}

/* The shared AetherOS theme uses important declarations; keep AGC account screens scoped. */
html.agc-account body {
  background: #0b1822!important;
}

.agc-account body::before, .agc-account body::after, .agc-account .portal-shell::before,
.agc-account .portal-panel::before {
  display: none;
}

.agc-account .portal-panel {
  background: #11252f!important;
  border-color: #36505a!important;
}

.agc-account .portal-maincard, .agc-account .portal-sidecard {
  padding: 22px;
}

.agc-account .portal-input {
  background: #0b1c25!important;
  border-color: #47616b!important;
  color: #f1f7f8!important;
}

.agc-account .portal-btn {
  background: #234653!important;
  color: #effbfc!important;
  border-color: #547f8e!important;
}

.agc-account .portal-btn-accent {
  background: #82b9bf!important;
  color: #09212b!important;
}

.agc-account .portal-status {
  color: #dceef1!important;
}

.agc-account .portal-subtitle {
  color: #a8dfe3!important;
}

.agc-account .portal-panel:hover {
  transform: none;
}

@media(max-width:760px) {
  .agc-account .portal-maincard, .agc-account .portal-sidecard {
    padding: 16px;
  }

  .agc-account .agc-entry-panel #agc-login-status {
    margin-top: 12px;
  }
}
