/* Track D · launch leftovers: signup completion, «Anular», smooth auth steps. Loaded after
   document-design.css and before mobile.css; uses the theme tokens and motion.css timings. */

/* Signup completion: one password field with show/hide, the prefilled name and company below. */
.auth-password-field{position:relative;display:block}
.auth-password-field input{padding-right:78px}
.auth-password-field .text-button{position:absolute;right:12px;top:50%;transform:translateY(-50%);font-size:11px;text-decoration:none;color:#51554c;padding:6px 2px}
.auth-password-field .text-button:hover{color:var(--ink)}
.auth-card #signup-password-rule{margin:-8px 0 0}
.auth-prefill{display:grid;gap:15px;padding:14px;border:1px solid var(--line);border-radius:14px;background:#f6f7f3}
.auth-prefill label{display:grid;gap:7px;font-size:11px;color:#5c5f58}

/* Auth card steps (signup → correo enviado → verificar → contraseña) cross-fade. */
@keyframes hesly-step{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
.auth-screen .auth-card.auth-step{animation:hesly-step var(--t-slow,.34s) var(--ease-out,ease-out) both}

/* Verification link screen: «¿El enlace no funciona? Pide otro» keeps the resend form one tap away. */
.auth-more{margin-top:18px}
.auth-more summary{display:inline-flex;align-items:center;gap:8px;list-style:none;cursor:pointer;font-size:12px;color:#51554c;text-decoration:underline;text-underline-offset:3px}
.auth-more summary::-webkit-details-marker{display:none}
.auth-more summary:after{content:"⌄";text-decoration:none;display:inline-block;transition:transform var(--t-base,.22s) var(--ease-soft,ease)}
.auth-more[open] summary:after{transform:rotate(180deg)}
.auth-more[open] .form-stack{margin-top:12px;animation:hesly-step var(--t-slow,.34s) var(--ease-out,ease-out) both}
.auth-sent-to{font-size:13px;color:var(--ink);margin:14px 0 0}
.auth-sent-to+.auth-copy{margin-top:6px}

/* «Anular» dialog: the two legal paths side by side, the one that applies highlighted. */
.annul-paths{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:10px;margin:16px 0 4px}
.annul-path{display:grid;gap:8px;align-content:start;padding:14px;border:1px solid var(--line);border-radius:16px;background:#fff;transition:border-color var(--t-base,.22s) var(--ease-soft,ease),box-shadow var(--t-base,.22s) var(--ease-soft,ease),opacity var(--t-base,.22s) var(--ease-soft,ease)}
.annul-path h3{font-size:13px;font-weight:550}
.annul-path p{font-size:11px;color:var(--muted);line-height:1.5}
.annul-path .annul-law{font-size:10px;color:#8a8d84}
.annul-path.is-applicable{border-color:#b9d42c;box-shadow:0 0 0 3px #d9fa3833}
.annul-path.is-unavailable{opacity:.62;background:#f7f7f4}
.annul-path .annul-tag{justify-self:start;font-size:9px;letter-spacing:.06em;text-transform:uppercase;padding:3px 7px;border-radius:9px;background:#eceee7;color:#5d6250}
.annul-path.is-applicable .annul-tag{background:var(--lime);color:#25281c}
.annul-path .button{justify-self:start;margin-top:4px}
.annul-form{display:grid;gap:10px;margin-top:6px}
.annul-form textarea{width:100%;min-height:72px;padding:10px;border:1px solid var(--line);border-radius:10px;background:#fff;font-size:12px;resize:vertical}

/* Invoice list: long Spanish headers («FECHA DE VENCIMIENTO», «TOTAL · VISTA EN EUR») wrap
   instead of pushing the amount column out of the panel at 1440 px. */
.main-content .invoice-table th{white-space:normal;line-height:1.3;vertical-align:bottom;padding-bottom:8px}

@media(prefers-reduced-motion:reduce){.auth-more[open] .form-stack{animation:none}.auth-more summary:after{transition:none}.auth-screen .auth-card.auth-step{animation:none}.annul-path{transition:none}}
