/* Login: apresentação vetorial independente dos fluxos de autenticação.
   Seletores locais preservam cadastro, recuperação de senha e os seis temas. */
.auth.login-experience { background: var(--paper); }
.auth.login-experience .login-page {
    width: min(1184px, calc(100% - 64px));
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .9fr);
    gap: clamp(40px, 6vw, 88px);
    padding: 44px 0;
}
.auth.login-experience .login-showcase { max-width: 580px; min-width: 0; }
.login-experience .login-showcase-brand { width: 132px; margin-bottom: 36px; }
.login-story-kicker, .login-welcome-label {
    margin: 0 0 12px;
    color: var(--accent-ink);
    font: 650 13px/1.5 Manrope, Arial, sans-serif;
    letter-spacing: normal;
}
.login-story h2 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(32px, 3.55vw, 48px);
    line-height: 1.16;
    letter-spacing: -.035em;
    font-weight: 750;
}
.login-story h2 span { color: var(--accent-ink); }
.login-story > p:last-child { max-width: 41ch; margin: 17px 0 24px; color: var(--muted); font-size: 14px; line-height: 1.75; }
.auth-motion { margin: 0; border: 1px solid var(--line); border-radius: 18px; background: var(--surface-soft); overflow: hidden; }
.auth-motion-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 18px 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.auth-motion-head > span:first-child { display: flex; align-items: center; gap: 7px; }
.auth-motion-head i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.auth-motion-head > span:last-child { color: var(--accent-ink); font-weight: 650; }
.auth-motion-stage { height: 320px; contain: layout paint; }
.auth-motion-canvas { display: block; width: 100%; height: 100%; overflow: hidden; font-family: Manrope, Arial, sans-serif; }
.auth-motion-canvas [data-auth-actor] { transform-box: view-box; transform-origin: 280px 178px; }
.auth-motion-canvas [data-auth-actor="ring"] { transform-origin: 279px 177px; }
.auth-motion-canvas [data-auth-actor="source"] { transform-origin: 139px 177px; }
.auth-motion-canvas [data-auth-actor="result"] { transform-origin: 414px 181px; }
.auth-workbench-guide { stroke: var(--line-strong); stroke-width: 1; opacity: .5; }
.auth-connection { stroke: var(--line-strong); stroke-dasharray: 3 6; }
.auth-paper-group { filter: url(#login-paper-shadow); }
.auth-paper { fill: #FFFEFA; stroke: #DDDDD9; stroke-width: 1; }
.auth-filetype { fill: white; font-size: 11px; font-weight: 800; }
.auth-paper-heading { fill: #303442; font-size: 13px; font-weight: 800; }
.auth-paper-note { fill: #5F6570; font-size: 8px; font-weight: 550; }
.auth-processor-disc { fill: var(--surface); stroke: var(--line); stroke-width: 1; }
.auth-processor-ring { stroke: var(--accent); stroke-width: 1.5; }
.auth-token { fill: var(--accent); }
.auth-motion-transient { opacity: 0; }
.auth-success-copy { fill: #265C3C; font-size: 12px; font-weight: 750; }
.auth-motion-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 16px 2px; min-height: 48px; }
.auth-motion-steps { display: flex; flex: 1; gap: 12px; padding: 0; margin: 0; list-style: none; color: var(--muted); font-size: 11px; line-height: 1.5; }
.auth-motion-steps li { padding: 8px 0; border-top: 2px solid var(--line); }
.auth-motion-steps li[aria-current="step"] { border-color: var(--accent); color: var(--ink); }
.auth-motion-mobile-label { display: none; }
.auth-motion .auth-motion-control {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    flex-shrink: 0; min-width: 96px; min-height: 44px; padding: 8px 10px;
    border: 1px solid transparent; border-radius: 8px;
    background: transparent; color: var(--accent-ink);
    font: 650 11px/1.4 Manrope, Arial, sans-serif; cursor: pointer;
    transition: background .18s ease, border-color .18s ease;
}
.auth-motion .auth-motion-control:hover { background: var(--surface-strong); border-color: var(--line); }
.auth-motion-control [data-auth-control-icon] { position: relative; width: 10px; height: 12px; background: currentColor; clip-path: polygon(10% 0, 100% 50%, 10% 100%); }
.auth-motion[data-playback="playing"] [data-auth-control-icon] { clip-path: polygon(0 0, 35% 0, 35% 100%, 0 100%, 0 0, 65% 0, 100% 0, 100% 100%, 65% 100%, 65% 0); }
.auth-motion figcaption { margin: 0; padding: 7px 18px 14px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.login-retention-note { display: flex; align-items: flex-start; gap: 9px; margin: 18px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.login-retention-note svg { flex: none; color: var(--accent-ink); }

.auth.login-experience .login-panel {
    max-width: 456px; padding: clamp(28px, 3vw, 40px);
    border: 1px solid var(--line); border-radius: 22px;
    background: var(--surface); box-shadow: var(--workspace-shadow); backdrop-filter: none;
}
.auth.login-experience .login-panel-logo { display: none; }
.auth.login-experience .login-panel h1 { font-size: clamp(25px, 2.4vw, 31px); line-height: 1.25; letter-spacing: -.03em; }
.auth.login-experience .login-intro { margin-top: 10px; margin-bottom: 26px; }
.auth.login-experience .login-input { min-height: 52px; font-size: 16px; border-radius: 10px; background: var(--field); }
.auth.login-experience .login-input:hover { border-color: var(--line-strong); }
.auth.login-experience .login-input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent); }
.auth.login-experience .login-input:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.auth.login-experience .password-toggle { min-height: 44px; color: var(--accent-ink); }
.auth.login-experience .password-toggle:hover { background: var(--surface-strong); }
.auth.login-experience .login-submit { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; background: var(--cta); border-radius: 10px; box-shadow: none; font-weight: 750; transition: background .18s ease, transform .18s ease; }
.auth.login-experience .login-submit:hover:not(:disabled) { background: var(--cta-hover); transform: translateY(-1px); box-shadow: none; }
.auth.login-experience .login-submit:active:not(:disabled) { transform: translateY(0); }
.auth.login-experience .social-button:hover { transform: none; }
.auth.login-experience .social-button--primary:hover { background: var(--accent-soft); color: var(--button-ink); border-color: var(--accent); }
.auth.login-experience .login-form[data-submitting="true"] .login-submit:disabled::before {
    content: ""; width: 15px; height: 15px; border: 2px solid currentColor;
    border-right-color: transparent; border-radius: 50%; animation: login-submit-spin .8s linear infinite;
}
.auth.login-experience .login-alert--error { color: var(--ink); }
.auth.login-experience .login-alt-button { min-height: 48px; line-height: 1.45; padding-block: 8px; }
.auth.login-experience .login-signup-cta { padding: 18px 0 0; margin-top: 24px; border-width: 1px 0 0; border-radius: 0; background: none; }
.auth.login-experience .login-create-account { color: var(--accent-ink); border-color: var(--line-strong); font-weight: 700; }
.auth.login-experience .login-create-account:hover { color: var(--ink); background: var(--surface-strong); border-color: var(--accent); transform: none; }
.auth.login-experience .login-help { text-align: center; }
.auth.login-experience .captcha-box { flex-wrap: wrap; }
.auth.login-experience .captcha-refresh { flex-shrink: 0; }
.auth.login-experience .login-input--code { font-size: 22px; }

@media (prefers-reduced-motion: no-preference) {
    .auth.login-experience .login-panel { animation: login-panel-enter .6s cubic-bezier(.2,.7,.2,1) both; }
}
@keyframes login-panel-enter { from { opacity: .65; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes login-submit-spin { to { transform: rotate(360deg); } }

@media (max-width: 1060px) and (min-width: 861px) {
    .auth.login-experience .login-page { width: calc(100% - 48px); gap: 32px; }
    .auth-motion-stage { height: 276px; }
    .auth-motion-head > span:last-child { display: none; }
    .auth-motion-steps { gap: 7px; }
    .auth-motion-bottom { padding-inline: 12px; gap: 8px; }
}
@media (max-width: 860px) {
    .auth.login-experience .login-page { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; width: min(480px, calc(100% - 32px)); gap: 16px; padding: 22px 0 32px; }
    .auth.login-experience .login-showcase { display: block; max-width: none; }
    .login-experience .login-showcase-brand { width: 112px; margin-bottom: 18px; }
    .login-story { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
    .login-retention-note, .auth-motion-head, .auth-motion-steps { display: none; }
    .auth-motion { border-radius: 14px; }
    .auth-motion-stage { height: 118px; }
    .auth-paper-group { filter: none; }
    .auth-motion-bottom { min-height: 44px; padding: 0 12px; }
    .auth-motion-mobile-label { display: inline; color: var(--ink); font-size: 12px; font-weight: 650; }
    .auth-motion figcaption { padding: 0 12px 10px; font-size: 10.5px; }
    .auth.login-experience .login-panel { max-width: none; padding: 26px; border-radius: 18px; }
    .auth.login-experience .login-panel h1 { font-size: 27px; }
    .auth.login-experience .login-panel { animation-name: login-panel-fade; }
}
@keyframes login-panel-fade { from { opacity: .7; } to { opacity: 1; } }
@media (max-width: 380px) {
    .auth.login-experience .login-page { width: calc(100% - 24px); padding-top: 16px; gap: 12px; }
    .auth.login-experience .login-panel { padding: 23px 18px; }
    .auth.login-experience .login-panel h1 { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
    .auth.login-experience .login-panel, .auth.login-experience .login-submit::before { animation: none !important; }
    .auth.login-experience :is(input, button, a) { transition: none !important; }
    .auth.login-experience .login-submit:hover { transform: none; }
}
@media (forced-colors: active) {
    .auth-motion, .auth.login-experience .login-panel { border: 1px solid CanvasText; }
    .auth-motion-steps li[aria-current="step"] { border-color: Highlight; }
    .auth-motion-control { forced-color-adjust: auto; }
}
