@layer components {
  /* ===================================================
     TGK Auth Status + Error Messaging
     Version: 2.5  Tokenised + Consolidated (2026)
     Changes:
     • Updated to v2.5 token standard
     • Cleaner structure and comments
     • All transitions, glyph animation, hidden state handling,
       and error styling preserved 100%
     =================================================== */

  #login-status-wrap {
    margin-top: 1rem;
    min-height: 1.25rem; /* prevents layout jump */
  }

  #login-status {
    position: relative;
    display: block;
    padding-left: 1.6rem;

    font-size: var(--font-size-base, 1rem);
    font-weight: var(--type-weight-medium, 500);

    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.25s ease, transform 0.25s ease;

    color: var(--text-accent);
    text-shadow: 0 1px 2px var(--shadow-glow);
  }

  #login-status::before {
    content: "☥";
    position: absolute;
    left: 0;
    top: 0;

    font-size: 1.2rem;
    opacity: 0.9;

    color: var(--glyph-color);
    text-shadow: 0 0 6px var(--shadow-glow);
  }

  /* Reveal state */
  #login-status:not(.hidden) {
    opacity: 1;
    transform: translateY(0);
  }

  /* Scoped hidden state (avoids affecting other .hidden classes) */
  #login-status.hidden {
    opacity: 0;
  }

  .auth-error {
    margin-top: 1rem;
    color: var(--form-error-color, #c0392b);
    font-size: var(--font-size-sm);
    line-height: var(--type-copy-line, 1.6);
  }
}
