/* Account and activation pages: v2 look on top of css/site.css tokens.
   Class names are the ones produced by account/app.mjs. */

.account-body { min-height: 100vh; display: flex; flex-direction: column; }
.account-body .site-header { position: sticky; }
.account-body [hidden] { display: none !important; }

.account-nav { display: flex; align-items: center; gap: 26px; margin-left: auto; font-size: 15px; font-weight: 550; }
.account-nav a { color: var(--muted); transition: color .2s; }
.account-nav a:hover { color: var(--cream); }
#session-action:empty { display: none; }
#session-action .action { margin: 0; min-height: 40px; padding: 0 18px; font-size: 14px; }

/* Brand noodle, drawn once in the corner behind the content */
.account-noodle { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: .5; pointer-events: none; }
.account-noodle path { animation: draw 2.4s var(--ease) .2s forwards; }
.account-noodle .s2 { animation-delay: .3s; } .account-noodle .s3 { animation-delay: .4s; }

.account-main { flex: 1; width: 100%; max-width: 980px; margin: 0 auto; padding: clamp(40px, 7vw, 90px) var(--gutter) 0; }
.account-heading { max-width: 760px; padding-bottom: 34px; }
.account-heading .eyebrow { color: var(--orange); margin-bottom: 18px; }
.account-heading h1 { font: 400 clamp(46px, 7vw, 92px)/.92 var(--display); text-transform: uppercase; margin: 0; animation: rise .8s var(--ease) both; }
.account-heading p:not(.eyebrow) { color: var(--muted); font-size: clamp(16px, 1.4vw, 19px); margin: 18px 0 0; max-width: 52ch; }

/* Tabs inserted by app.mjs when signed in */
.account-tabs { display: flex; gap: 6px; flex-wrap: wrap; padding: 4px; margin-bottom: 30px; width: fit-content; border-radius: 99px; background: var(--bg-2); border: 1px solid var(--line); }
.account-tabs a { padding: 10px 18px; border-radius: 99px; color: var(--muted); font-weight: 600; font-size: 14px; transition: color .2s, background .2s; }
.account-tabs a:hover { color: var(--cream); }
.account-tabs a[aria-current="page"] { color: #1a1a1a; background: var(--cream); }

/* Panels */
.account-panel { position: relative; overflow: hidden; margin-bottom: 20px; padding: clamp(24px, 3.4vw, 40px); border-radius: 26px; background: rgba(20,20,20,.86); border: 1px solid var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); overflow-wrap: anywhere; animation: rise .7s var(--ease) both; }
.account-panel::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--orange) 0 33.3%, var(--yellow) 33.3% 66.6%, var(--cyan) 66.6%); }
.account-panel h2 { font: 400 clamp(28px, 3vw, 38px)/1 var(--display); text-transform: uppercase; margin: 0 0 16px; }
.account-panel h3 { font: 400 22px/1 var(--display); text-transform: uppercase; margin: 26px 0 10px; }
.account-panel p, .account-panel li { color: var(--muted); }
.account-panel ol { padding-left: 22px; }
.account-panel li { margin-bottom: 10px; }
.account-panel a, #account-content > a { color: var(--cream); text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 5px; display: inline-block; margin: 10px 16px 10px 0; font-weight: 600; }
.account-panel a:hover, #account-content > a:hover { color: var(--orange); }
.account-panel form { max-width: 460px; }
.account-utility { background: transparent; }
.account-utility::before { display: none; }

/* Forms */
.field { display: block; margin: 18px 0; }
.field span { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 600; color: var(--muted); }
.field input { width: 100%; min-height: 52px; padding: 0 20px; border-radius: 99px; border: 1.5px solid var(--line-2); background: #0f0f0f; color: var(--cream); font: inherit; transition: border-color .2s; }
.field input:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 4px rgba(255,100,26,.15); }
.check { display: flex; gap: 12px; align-items: flex-start; max-width: 560px; margin: 18px 0; }
.check input { width: 22px; height: 22px; flex: none; accent-color: var(--orange); margin-top: 2px; }
.form-links { font-size: 14px; }
.hint { font-size: 14px !important; color: var(--dim) !important; }
.success { color: var(--green) !important; }
input[type="file"] { display: block; width: 100%; max-width: 520px; margin: 16px 0; padding: 18px; border-radius: 18px; border: 1.5px dashed var(--line-2); background: #0f0f0f; font: inherit; color: var(--muted); }
input[type="file"]:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
input::file-selector-button { margin-right: 14px; padding: 10px 16px; border: 0; border-radius: 99px; background: var(--cream); color: #1a1a1a; font-weight: 650; cursor: pointer; }

/* Buttons produced by app.mjs */
.action { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; margin: 12px 12px 12px 0; padding: 0 24px; border-radius: 99px; border: 1.5px solid var(--orange); background: var(--orange); color: #1a1a1a; font-weight: 650; font-size: 15px; cursor: pointer; box-shadow: 0 2px 0 rgba(0,0,0,.35); transition: background .2s, transform .2s var(--ease); }
.action:hover:not(:disabled) { background: #ff7a38; transform: translateY(-1px); }
.action.secondary { background: transparent; color: var(--cream); border-color: var(--line-2); box-shadow: none; }
.action.secondary:hover:not(:disabled) { background: rgba(255,240,218,.06); border-color: var(--cream); }
.action:disabled { opacity: .55; cursor: wait; }

/* Notices */
.notice { margin: 0 0 22px; padding: 16px 20px; border-radius: 18px; border: 1px solid rgba(20,188,227,.55); background: rgba(20,188,227,.08); color: var(--cream); }
.notice.error { border-color: rgba(255,100,26,.6); background: rgba(255,100,26,.1); }

/* Licences and devices */
.license { margin-top: 26px; padding-top: 6px; border-top: 1px solid var(--line); }
.device { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.device > span { color: var(--muted); font-size: 14px; }
.device .hint { flex-basis: 100%; margin: 0; }
.device .action { margin: 0; min-height: 40px; font-size: 14px; }

.account-footer { width: 100%; max-width: 980px; margin: 90px auto 0; padding-inline: var(--gutter); }

@media (max-width: 640px) {
  .account-nav { gap: 16px; font-size: 14px; }
  .account-nav a:nth-child(-n+2) { display: none; }
  .account-nav a, .account-footer a { display: inline-block; padding: 12px 0; }
  .account-body .site-header { flex-wrap: wrap; gap: 14px; }
  .account-tabs { width: 100%; border-radius: 18px; }
  .account-panel .action { width: 100%; white-space: normal; margin-right: 0; }
  .device { flex-direction: column; align-items: flex-start; }
  .account-noodle { opacity: .25; }
}

/* Show-password toggle, profile list, current-page nav */
.field { position: relative; }
.pw-toggle { margin-top: 4px; padding: 12px 0; min-height: 44px; border: 0; background: none; color: var(--muted); font: 600 13px var(--sans); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.pw-toggle:hover { color: var(--cream); }
.profile { display: grid; grid-template-columns: max-content 1fr; gap: 8px 24px; margin: 0; }
.profile dt { color: var(--dim); font: 600 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; align-self: center; }
.profile dd { margin: 0; color: var(--cream); }
.account-nav a[aria-current="page"] { color: var(--cream); box-shadow: 0 2px 0 var(--orange); }
.account-footer a[href^="mailto:"] { color: var(--cream); }

.account-footer .footer-legal a { color: var(--muted); }

.confirm-row { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.confirm-row[hidden] { display: none; }
.confirm-row .hint { flex-basis: 100%; margin: 0; }
.confirm-row .action { margin: 0; min-height: 40px; font-size: 14px; }
.account-panel a.action { display: inline-flex; margin: 12px 12px 12px 0; color: #1a1a1a; text-decoration: none; }
.account-panel a.action.secondary { color: var(--cream); }
.account-panel a.action:hover { color: #1a1a1a; }
.account-panel a.action.secondary:hover { color: var(--cream); }

/* Product artwork shared with checkout and the native applications. */
.account-panel .product-heading { display: flex; align-items: center; gap: 20px; min-width: 0; }
.product-icon { width: 80px; height: 80px; flex: none; object-fit: contain; }
.product-download-link { gap: 10px; }
.product-download-link .product-icon { width: 32px; height: 32px; }
@media (max-width: 640px) {
  .account-panel .product-heading { gap: 14px; font-size: 28px; }
  .product-heading .product-icon { width: 60px; height: 60px; }
}
