:root {
    --pc-primary: #003845;
    --pc-secondary: #166270;
    --pc-support: #4D909E;
    --pc-warm: #FFCC99;
    --pc-orange: #FF6B00;
    --pc-background: #F7FBFC;
    --pc-soft: #EEF6F7;
    --pc-border: #DDEBED;
    --pc-text: #003845;
    --pc-muted: #536B73;
    --auth-primary: #003845;
    --auth-secondary: #166270;
    --auth-support: #4D909E;
    --auth-warm: #FFCC99;
    --auth-orange: #FF6B00;
    --auth-bg: #F7FBFC;
    --auth-panel: #FFFFFF;
    --auth-border: #DDEBED;
    --auth-muted: #536B73;
    --auth-danger: #C93C37;
    --auth-success: #15846D;

    /* Tokens PetClínicas (aliases oficiais) */
    --pet-primary: var(--pc-primary);
    --pet-primary-dark: #002830;
    --pet-secondary: var(--pc-secondary);
    --pet-accent: var(--pc-orange);
    --pet-surface: var(--auth-panel);
    --pet-text: var(--pc-text);
    --pet-muted: var(--pc-muted);
    --pet-border: var(--pc-border);
    --pet-success: var(--auth-success);
    --pet-danger: var(--auth-danger);
}

*,
*::before,
*::after { box-sizing: border-box; }

html, body {
    margin: 0;
    min-height: 100%;
}

body.pc-auth-body {
    font-family: "Poppins", system-ui, sans-serif;
    color: var(--pet-text);
    background: var(--pc-background);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { color: var(--pet-secondary); text-decoration: none; }
a:hover { color: var(--pet-accent); }

[x-cloak] { display: none !important; }

img, svg { max-width: 100%; height: auto; display: block; }

.pc-auth {
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    grid-template-columns: minmax(320px, 40%) minmax(0, 1fr);
}

.pc-auth--simple {
    grid-template-columns: minmax(320px, 440px) minmax(0, 1fr);
    max-width: 1100px;
    margin: 0 auto;
    min-height: 100vh;
    min-height: 100dvh;
    align-items: stretch;
}

.pc-auth--register {
    grid-template-columns: minmax(360px, 1.05fr) minmax(0, 1fr);
    max-width: 1180px;
    margin: 0 auto;
    min-height: 100vh;
    min-height: 100dvh;
    align-items: stretch;
    width: 100%;
}

.pc-auth__form-col {
    background: var(--pet-surface);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(1.25rem, 3vw, 2.25rem) clamp(1.25rem, 3.5vw, 2.75rem);
    border-right: 1px solid var(--pet-border);
}

.pc-auth--register .pc-auth__form-col {
    justify-content: flex-start;
    padding-top: clamp(1.25rem, 3vh, 2rem);
    padding-bottom: clamp(1.25rem, 3vh, 2rem);
}

.pc-auth__form-inner {
    width: 100%;
    max-width: 26rem;
    margin: 0 auto;
}

.pc-auth--register .pc-auth__form-inner {
    max-width: 28.5rem;
}

.pc-auth__brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.15rem;
}

.pc-auth__brand--with-mascot {
    margin-bottom: 1rem;
}

.pc-auth__logo {
    display: inline-flex;
    margin-bottom: 0;
}

.pc-auth__logo img {
    height: 52px;
    width: auto;
}

.pc-auth__mascot {
    width: auto;
    height: 112px;
    max-width: 96px;
    object-fit: contain;
    object-position: bottom center;
    flex-shrink: 0;
    aspect-ratio: 682 / 1024;
}

.pc-auth__mascot-picture {
    display: inline-flex;
    align-items: flex-end;
    justify-content: center;
    width: 96px;
    height: 112px;
    flex-shrink: 0;
    aspect-ratio: 682 / 1024;
}

.pc-auth__mascot-picture .pc-auth__mascot {
    width: 100%;
    height: 100%;
    max-width: none;
}

.pc-auth__title {
    margin: 0 0 .4rem;
    font-size: clamp(1.35rem, 2.2vw, 1.7rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--pet-primary);
}

.pc-auth__subtitle {
    margin: 0 0 1.15rem;
    font-size: .92rem;
    line-height: 1.5;
    color: var(--pet-muted);
}

.pc-auth--register .pc-auth__subtitle {
    max-width: 34rem;
}

.pc-auth__field {
    margin-bottom: .85rem;
}

.pc-auth__label {
    display: block;
    margin-bottom: .35rem;
    font-size: .82rem;
    font-weight: 600;
    color: var(--pet-text);
}

.pc-auth__control {
    position: relative;
}

.pc-auth__input {
    width: 100%;
    min-height: 46px;
    padding: .7rem 2.75rem .7rem 2.65rem;
    border: 1px solid var(--pet-border);
    border-radius: 12px;
    background: #fff;
    color: var(--pet-text);
    font: inherit;
    font-size: .95rem;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.pc-auth__input--bare {
    padding-left: .95rem;
}

.pc-auth__input:focus {
    outline: none;
    border-color: var(--pet-accent);
    box-shadow: 0 0 0 3px rgba(255, 107, 0, .18);
}

.pc-auth__input[aria-invalid="true"] {
    border-color: var(--pet-danger);
}

.pc-auth__icon {
    position: absolute;
    left: .9rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.15rem;
    height: 1.15rem;
    color: var(--pc-support);
    pointer-events: none;
}

.pc-auth__eye {
    position: absolute;
    right: .55rem;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: var(--pet-muted);
    cursor: pointer;
    padding: .45rem;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pc-auth__eye:hover,
.pc-auth__eye:focus-visible {
    color: var(--pet-primary);
    outline: none;
    background: var(--pc-soft);
}

.pc-auth__error {
    margin-top: .35rem;
    font-size: .8rem;
    color: var(--pet-danger);
}

.pc-auth__status {
    margin-bottom: 1rem;
    padding: .75rem .9rem;
    border-radius: 12px;
    background: rgba(21, 132, 109, .1);
    color: var(--pet-success);
    font-size: .875rem;
    font-weight: 500;
}

.pc-auth__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: .25rem 0 1.25rem;
    flex-wrap: wrap;
}

.pc-auth__check {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    font-size: .875rem;
    color: var(--pet-muted);
    cursor: pointer;
    user-select: none;
}

.pc-auth__check input {
    width: 1rem;
    height: 1rem;
    accent-color: var(--pet-accent);
}

.pc-auth__link {
    font-size: .875rem;
    font-weight: 500;
    color: var(--pet-secondary);
}

.pc-auth__btn {
    width: 100%;
    min-width: 100%;
    min-height: 48px;
    position: relative;
    border: 0;
    border-radius: 12px;
    background: var(--pet-primary);
    color: #fff;
    font: inherit;
    font-size: .95rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}

.pc-auth__btn:hover { background: var(--pet-secondary); }
.pc-auth__btn:focus-visible {
    outline: 2px solid var(--pet-accent);
    outline-offset: 2px;
}
.pc-auth__btn:disabled,
.pc-auth__btn.is-loading {
    opacity: .78;
    cursor: wait;
}

.pc-auth__btn--accent {
    background: var(--pet-accent);
    box-shadow: 0 10px 24px rgba(255, 107, 0, .22);
}

.pc-auth__btn--accent:hover {
    background: #e86000;
}

.pc-auth__btn--accent:focus-visible {
    outline: 2px solid var(--pet-primary);
    outline-offset: 2px;
}

.pc-auth__btn-secondary {
    background: transparent;
    color: var(--pet-primary);
    border: 1px solid var(--pet-border);
}

.pc-auth__btn-secondary:hover {
    background: var(--pc-soft);
    color: var(--pet-primary);
}

.pc-auth__spinner {
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(255,255,255,.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: pc-spin .7s linear infinite;
}

@keyframes pc-spin { to { transform: rotate(360deg); } }

.pc-auth__secondary {
    margin-top: 1rem;
    font-size: .875rem;
    line-height: 1.5;
    color: var(--pet-muted);
    text-align: center;
}

.pc-auth__secondary a { font-weight: 600; }

.pc-auth__legal {
    margin: .85rem 0 0;
    font-size: .78rem;
    line-height: 1.5;
    color: var(--pet-muted);
    text-align: center;
}

.pc-auth__legal a {
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.pc-auth__help {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--pet-border);
    font-size: .8rem;
    color: var(--pet-muted);
}

.pc-auth__help-links {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem 1rem;
    margin-top: .65rem;
}

.pc-auth__footer {
    margin-top: 1.75rem;
    font-size: .75rem;
    color: var(--pet-muted);
}

.pc-auth__promo {
    position: relative;
    background:
        radial-gradient(ellipse at 20% 0%, rgba(255, 204, 153, .35), transparent 50%),
        radial-gradient(ellipse at 90% 80%, rgba(77, 144, 158, .28), transparent 45%),
        linear-gradient(160deg, #003845 0%, #0a4f5d 48%, #166270 100%);
    color: #fff;
    padding: clamp(1.35rem, 3vw, 2.25rem);
    display: flex;
    flex-direction: column;
    min-height: 100%;
    overflow: hidden;
}

.pc-auth__promo::before {
    content: "";
    position: absolute;
    inset: auto -10% -20% 40%;
    height: 60%;
    background: radial-gradient(circle, rgba(255,107,0,.22), transparent 65%);
    pointer-events: none;
}

.pc-auth__promo-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    max-width: 44rem;
    margin: 0 auto;
    width: 100%;
}

.pc-feature-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    margin-bottom: 1.25rem;
}

.pc-feature-tabs button {
    border: 1px solid rgba(255,255,255,.22);
    background: rgba(255,255,255,.08);
    color: #d7eef2;
    border-radius: 999px;
    padding: .45rem .85rem;
    font: inherit;
    font-size: .78rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.pc-feature-tabs button:hover,
.pc-feature-tabs button[aria-selected="true"] {
    background: rgba(255,107,0,.95);
    border-color: transparent;
    color: #fff;
}

.pc-feature-tabs button:focus-visible {
    outline: 2px solid #FFCC99;
    outline-offset: 2px;
}

.pc-feature-copy h2 {
    margin: 0 0 .65rem;
    font-size: clamp(1.25rem, 2.4vw, 1.85rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.pc-feature-copy p {
    margin: 0 0 1.25rem;
    font-size: .95rem;
    line-height: 1.6;
    color: rgba(255,255,255,.86);
    max-width: 36rem;
}

.pc-feature-mock {
    flex: 1;
    min-height: 220px;
    border-radius: 18px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.14);
    backdrop-filter: blur(8px);
    padding: 1rem;
    box-shadow: 0 24px 48px rgba(0,0,0,.18);
}

.pc-mock-bar {
    display: flex;
    gap: .4rem;
    margin-bottom: .85rem;
}

.pc-mock-dot {
    width: .55rem;
    height: .55rem;
    border-radius: 50%;
    background: rgba(255,255,255,.35);
}

.pc-mock-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: .75rem;
    height: calc(100% - 1.5rem);
}

.pc-mock-card {
    border-radius: 12px;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.12);
    padding: .85rem;
}

.pc-mock-card--wide { grid-column: 1 / -1; }

.pc-mock-label {
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: rgba(255,255,255,.65);
    margin-bottom: .45rem;
}

.pc-mock-value {
    font-size: 1.15rem;
    font-weight: 700;
}

.pc-mock-lines span {
    display: block;
    height: .45rem;
    border-radius: 999px;
    background: rgba(255,255,255,.18);
    margin-top: .45rem;
}

.pc-mock-lines span:nth-child(2) { width: 78%; }
.pc-mock-lines span:nth-child(3) { width: 62%; }

.pc-mock-chips {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin-top: .65rem;
}

.pc-mock-chip {
    font-size: .7rem;
    font-weight: 600;
    padding: .3rem .55rem;
    border-radius: 999px;
    background: rgba(255,107,0,.9);
}

.pc-auth__promo-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.25rem;
}

.pc-auth__promo-nav button {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.25);
    background: rgba(255,255,255,.08);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pc-auth__promo-nav button:hover {
    background: rgba(255,255,255,.16);
}

.pc-auth__dots {
    display: flex;
    gap: .4rem;
}

.pc-auth__dots span {
    width: .45rem;
    height: .45rem;
    border-radius: 50%;
    background: rgba(255,255,255,.35);
}

.pc-auth__dots span.is-active {
    background: #FF6B00;
    width: 1.1rem;
    border-radius: 999px;
}

.pc-auth__botral {
    margin-top: auto;
    padding-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: .75rem;
    color: rgba(255,255,255,.72);
}

.pc-auth__botral strong {
    color: #FFCC99;
    font-weight: 600;
}

.pc-auth__disclaimer {
    margin: .5rem 0 0;
    font-size: .7rem;
    line-height: 1.45;
    color: rgba(255,255,255,.55);
    max-width: 28rem;
}

.pc-auth__promo-simple {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
}

.pc-auth__promo-simple h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.pc-auth__promo-simple p {
    margin: 0;
    color: rgba(255,255,255,.85);
    line-height: 1.55;
}

.pc-auth__promo-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: .55rem;
}

.pc-auth__promo-list li {
    display: flex;
    align-items: center;
    gap: .55rem;
    font-size: .875rem;
    color: rgba(255,255,255,.9);
}

.pc-auth__promo-list li::before {
    content: "";
    width: .55rem;
    height: .55rem;
    border-radius: 50%;
    background: var(--pet-accent);
    flex-shrink: 0;
}

/* Painel de benefícios — cadastro */
.pc-auth__promo-benefits {
    gap: 1.15rem;
    justify-content: center;
}

.pc-auth__promo-copy h2 {
    margin: 0 0 .55rem;
    font-size: clamp(1.25rem, 2.2vw, 1.7rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.pc-auth__promo-copy p {
    margin: 0;
    color: rgba(255,255,255,.86);
    line-height: 1.55;
    font-size: .92rem;
}

.pc-auth__benefit-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: .7rem;
}

.pc-auth__benefit {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: .75rem;
    align-items: start;
    padding: .75rem .85rem;
    border-radius: 14px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
}

.pc-auth__benefit-icon {
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,107,0,.18);
    color: #FFCC99;
    flex-shrink: 0;
}

.pc-auth__benefit strong {
    display: block;
    font-size: .9rem;
    font-weight: 600;
    margin-bottom: .15rem;
}

.pc-auth__benefit p {
    margin: 0;
    font-size: .8rem;
    line-height: 1.45;
    color: rgba(255,255,255,.78);
}

.pc-auth__trust {
    display: grid;
    gap: .7rem;
}

.pc-auth__seal,
.pc-auth__trial-badge {
    display: flex;
    align-items: flex-start;
    gap: .7rem;
    padding: .75rem .85rem;
    border-radius: 14px;
    background: rgba(0,0,0,.16);
    border: 1px solid rgba(255,255,255,.12);
}

.pc-auth__seal-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(21, 132, 109, .28);
    color: #9BE7CF;
    flex-shrink: 0;
}

.pc-auth__seal strong,
.pc-auth__trial-badge strong {
    display: block;
    font-size: .88rem;
    font-weight: 600;
}

.pc-auth__seal span,
.pc-auth__trial-badge span {
    display: block;
    font-size: .78rem;
    color: rgba(255,255,255,.75);
    line-height: 1.4;
}

.pc-check-list {
    list-style: none;
    margin: .65rem 0 0;
    padding: 0;
    display: grid;
    gap: .3rem;
}

.pc-check-list li {
    font-size: .78rem;
    color: var(--pet-muted);
}

.pc-check-list li.ok {
    color: var(--pet-success);
    font-weight: 500;
}

.pc-pwd-checks {
    list-style: none;
    margin: .55rem 0 0;
    padding: 0;
    display: grid;
    gap: .28rem;
    min-height: 7.2rem;
}

.pc-pwd-checks li {
    display: flex;
    align-items: center;
    gap: .45rem;
    font-size: .78rem;
    color: var(--pet-muted);
}

.pc-pwd-checks__mark {
    width: .95rem;
    height: .95rem;
    border-radius: 999px;
    border: 1.5px solid var(--pet-border);
    background: #fff;
    flex-shrink: 0;
    position: relative;
}

.pc-pwd-checks.is-active li.is-pending {
    color: var(--pet-text);
}

.pc-pwd-checks.is-active li.is-pending .pc-pwd-checks__mark {
    border-color: #c4d5d9;
    background: var(--pc-soft);
}

.pc-pwd-checks li.is-ok {
    color: var(--pet-success);
    font-weight: 500;
}

.pc-pwd-checks li.is-ok .pc-pwd-checks__mark {
    border-color: var(--pet-success);
    background: var(--pet-success);
}

.pc-pwd-checks li.is-ok .pc-pwd-checks__mark::after {
    content: "";
    position: absolute;
    left: .28rem;
    top: .1rem;
    width: .22rem;
    height: .42rem;
    border: solid #fff;
    border-width: 0 1.8px 1.8px 0;
    transform: rotate(45deg);
}

@media (max-width: 1100px) {
    .pc-auth--register {
        grid-template-columns: minmax(340px, .95fr) minmax(0, 1.05fr);
        max-width: 100%;
    }

    .pc-auth__mascot {
        width: auto;
        height: 88px;
        max-width: 72px;
    }

    .pc-auth__mascot-picture {
        width: 72px;
        height: 88px;
    }
}

@media (max-width: 960px) {
    .pc-auth,
    .pc-auth--simple,
    .pc-auth--register {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .pc-auth__form-col {
        border-right: 0;
        min-height: auto;
        padding-top: 1.35rem;
        padding-bottom: 1.35rem;
        justify-content: flex-start;
    }

    .pc-auth__promo {
        min-height: auto;
        padding-bottom: 1.5rem;
    }

    .pc-auth__mascot {
        width: auto;
        height: 72px;
        max-width: 60px;
    }

    .pc-auth__mascot-picture {
        width: 60px;
        height: 72px;
    }

    .pc-feature-mock {
        min-height: 180px;
    }

    .pc-mock-grid {
        grid-template-columns: 1fr;
    }

    .pc-auth__benefit-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .pc-auth__form-col {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .pc-auth__brand {
        gap: .75rem;
    }

    .pc-auth__logo img {
        max-width: 160px;
        height: 40px;
    }

    .pc-auth__mascot {
        width: auto;
        height: 64px;
        max-width: 52px;
    }

    .pc-auth__mascot-picture {
        width: 52px;
        height: 64px;
    }

    .pc-auth__title {
        font-size: 1.25rem;
    }

    .pc-auth__subtitle {
        font-size: .88rem;
    }

    .pc-auth__promo-copy h2 {
        font-size: 1.2rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}
