/* Sign in / create account / reset password modal with a cart-style plan summary */
.auth-modal { padding: 0; border: 0; border-radius: 20px; background: transparent; max-width: min(980px, calc(100vw - 24px)); width: 100%; max-height: calc(100vh - 24px); overflow: visible; color: var(--ink, #0c1326); }
.auth-modal::backdrop { background: rgba(9, 13, 24, .55); backdrop-filter: blur(3px); }
.auth-modal[open] { animation: auth-pop .22s cubic-bezier(.22, 1, .36, 1); }
@keyframes auth-pop { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .auth-modal[open] { animation: none; } }

.auth-modal__panel { position: relative; background: #fff; border-radius: 20px; box-shadow: 0 40px 90px -30px rgba(9, 13, 24, .6); overflow: hidden; max-height: calc(100vh - 24px); display: flex; }
.auth-modal__close { position: absolute; top: 12px; right: 14px; z-index: 2; width: 38px; height: 38px; border: 1px solid var(--line-soft, #e3e6ee); border-radius: 50%; background: #fff; font-size: 24px; line-height: 1; cursor: pointer; color: #3b4357; }
.auth-modal__close:hover { background: #f2f5fa; }
.auth-modal__grid { display: grid; grid-template-columns: minmax(250px, 340px) minmax(0, 1fr); width: 100%; min-height: 0; }

/* Cart column */
.auth-cart { padding: 36px 30px; background: linear-gradient(160deg, #eef7fa, #f7fafc); border-right: 1px solid var(--line-soft, #e3e6ee); display: flex; flex-direction: column; gap: 12px; overflow-y: auto; }
.auth-cart .eyebrow { margin: 0; }
.auth-cart__plan { margin: 0; font-size: 1.5rem; line-height: 1.2; }
.auth-cart__tagline { margin: 0; opacity: .75; }
.auth-cart__features { margin: 6px 0 0; padding: 0; list-style: none; }
.auth-cart__features li { position: relative; padding: 6px 0 6px 26px; font-size: .95rem; }
.auth-cart__features li::before { content: ""; position: absolute; left: 0; top: 11px; width: 14px; height: 8px; border-left: 2px solid #006876; border-bottom: 2px solid #006876; transform: rotate(-45deg) scale(.9); }
.auth-cart__total { display: flex; align-items: baseline; justify-content: space-between; margin-top: auto; padding-top: 16px; border-top: 1px dashed #b9c4d3; }
.auth-cart__total strong { font-size: 1.7rem; letter-spacing: -.02em; }
.auth-cart__interval, .auth-cart__secure { margin: 0; font-size: .85rem; opacity: .75; }

/* Form column */
.auth-pane { padding: 36px 34px; overflow-y: auto; min-width: 0; }
.auth-pane__title { margin: 0 44px 20px 0; font-size: 1.25rem; }

.auth-switch { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 22px 0 0; padding-top: 16px; border-top: 1px solid var(--line-soft, #e3e6ee); font-size: .92rem; }
.auth-link { appearance: none; border: 0; background: none; padding: 0; font: 600 .92rem/1.4 "Inter", sans-serif; color: #006876; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.auth-link:hover { color: #00515c; }
.auth-link:focus-visible { outline: 3px solid rgba(0, 140, 186, .45); outline-offset: 2px; border-radius: 4px; }


.auth-status [role="contentinfo"] > div { margin: 0 0 16px; padding: 12px 16px; border-radius: 10px; background: #eef6ff; line-height: 1.5; }
.auth-status [aria-label="Error message"] > div, .auth-status [aria-label="Warning message"] > div { background: #fdecec; }
.auth-status a { color: #006876; font-weight: 600; }
.auth-status .hidden { display: none; }

/* Flat variant of .plain-card (keeps its form styling, drops the card chrome) */
.plain-card--flat { max-width: none; padding: 0; border: 0; box-shadow: none; border-radius: 0; background: transparent; }
.auth-panel[hidden] { display: none; }
.auth-panel h1, .auth-panel h2 { display: none; }
.auth-panel .form-item--description, .auth-panel .description { font-size: .8rem; }
.auth-panel .form-actions { margin-top: 18px; }

@media (max-width: 760px) {
  .auth-modal__panel { display: block; overflow-y: auto; }
  .auth-modal__grid { display: block; }
  .auth-cart { padding: 22px 20px 16px; border-right: 0; border-bottom: 1px solid var(--line-soft, #e3e6ee); gap: 8px; }
  .auth-cart__features, .auth-cart__secure { display: none; }
  .auth-cart__total { margin-top: 6px; padding-top: 10px; }
  .auth-pane { padding: 22px 20px 28px; overflow: visible; }
}
