/* Pathline auth — split editorial + form */
:root {
    --pl-bg: #ffffff;
    --pl-text: #0e0e0e;
    --pl-muted: #6f6f6f;
    --pl-muted-2: #949494;
    --pl-border: #e4e4e4;
    --pl-border-strong: #d4d4d4;
    --pl-green: #008556;
    --pl-green-soft: #e6f4ec;
    --pl-green-text: #007a4d;
    --pl-blue: #1774ff;
    --pl-red: #b42318;
    --pl-font: "Helvetica Neue", Helvetica, Arial, sans-serif;
    --pl-auth-brand: #0a0a0a;
    --pl-auth-brand-muted: rgba(255, 255, 255, 0.52);
    --pl-auth-brand-faint: rgba(255, 255, 255, 0.07);
}

html {
    color-scheme: light;
}

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

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

body.pl-auth {
    font-family: var(--pl-font);
    font-size: 14px;
    color: var(--pl-text);
    background: var(--pl-bg);
    -webkit-font-smoothing: antialiased;
}

/* ── Page shell ── */
.pl-auth-page {
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    width: 100vw;
    overflow: hidden;
}

.pl-auth-panel {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--pl-bg);
}

.pl-auth-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 32px 32px;
}

/* ── Brand panel ── */
.pl-auth-brand {
    position: relative;
    overflow: hidden;
    background: var(--pl-auth-brand);
    color: #fff;
}

.pl-auth-paths {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.pl-auth-brand-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: clamp(32px, 6vh, 56px);
    height: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    padding: clamp(28px, 4vw, 48px);
}

.pl-auth-brand-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.pl-auth-brand-logo {
    display: inline-flex;
    flex-shrink: 0;
    line-height: 0;
    text-decoration: none;
    opacity: 0;
    animation: pl-auth-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.15s forwards;
}

.pl-auth-brand-logo:hover {
    opacity: 0.88;
}

.pl-auth-brand-logo img {
    display: block;
    height: 24px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.pl-auth-brand-copy {
    max-width: 28rem;
    padding-top: clamp(12px, 3vh, 32px);
}

.pl-auth-brand-eyebrow {
    margin: 0 0 14px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    opacity: 0;
    animation: pl-auth-rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.35s forwards;
}

.pl-auth-brand-headline {
    margin: 0 0 16px;
    font-size: clamp(32px, 4.5vw, 52px);
    font-weight: 400;
    letter-spacing: -0.03em;
    line-height: 1.05;
    color: #fff;
    opacity: 0;
    animation: pl-auth-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.45s forwards;
}

.pl-auth-path-hub {
    display: inline-block;
    vertical-align: -0.08em;
    width: 0.18em;
    height: 0.18em;
    margin-left: 0.02em;
    transform: translate(1px, -2px);
    border-radius: 50%;
    --pl-cta-feed-r: 255;
    --pl-cta-feed-g: 255;
    --pl-cta-feed-b: 255;
    background: rgba(var(--pl-cta-feed-r), var(--pl-cta-feed-g), var(--pl-cta-feed-b), 1);
    box-shadow: 0 0 6px rgba(var(--pl-cta-feed-r), var(--pl-cta-feed-g), var(--pl-cta-feed-b), 0.55);
    position: relative;
    z-index: 2;
    flex-shrink: 0;
    transition: background 0.25s ease, box-shadow 0.25s ease;
}

.pl-auth-path-hub.is-fed {
    animation: pl-auth-hub-feed 0.85s ease-out;
}

@keyframes pl-auth-hub-feed {
    0%, 100% {
        box-shadow: 0 0 6px rgba(var(--pl-cta-feed-r), var(--pl-cta-feed-g), var(--pl-cta-feed-b), 0.55);
        transform: translate(1px, -2px) scale(1);
    }
    35% {
        box-shadow:
            0 0 10px rgba(var(--pl-cta-feed-r), var(--pl-cta-feed-g), var(--pl-cta-feed-b), 0.95),
            0 0 28px rgba(var(--pl-cta-feed-r), var(--pl-cta-feed-g), var(--pl-cta-feed-b), 0.7),
            0 0 48px rgba(var(--pl-cta-feed-r), var(--pl-cta-feed-g), var(--pl-cta-feed-b), 0.45);
        transform: translate(1px, -2px) scale(1.35);
    }
}

@media (prefers-reduced-motion: reduce) {
    .pl-auth-path-hub.is-fed {
        animation: none;
    }
}

.pl-auth-brand-sub {
    margin: 0;
    font-size: clamp(15px, 1.6vw, 17px);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.68);
    opacity: 0;
    animation: pl-auth-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.55s forwards;
}

.pl-auth-brand-products {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
    margin: 0;
    padding: 0;
    list-style: none;
    opacity: 0;
    animation: pl-auth-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.65s forwards;
}

.pl-auth-brand-products li {
    padding: 6px 10px;
    border: 1px solid var(--pl-auth-brand-faint);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
}

.pl-auth-brand-products li:first-child {
    border-color: rgba(0, 133, 86, 0.45);
    color: rgba(255, 255, 255, 0.92);
}

/* ── Shared header (logo + welcome) ── */
.pl-auth-header {
    margin-bottom: 32px;
}

.pl-auth-welcome-head {
    display: none;
    margin-bottom: 24px;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.pl-auth-logo {
    display: block;
    line-height: 0;
    margin-bottom: 0;
    text-decoration: none;
}

.pl-auth-logo:hover {
    opacity: 0.85;
}

.pl-auth-logo img {
    display: block;
    height: 24px;
    width: auto;
    max-width: 140px;
    margin-left: auto;
    margin-right: auto;
    object-fit: contain;
}

.pl-auth-card,
.auth-container {
    width: 100%;
    max-width: 380px;
    opacity: 0;
    animation: pl-auth-rise 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards;
}

.pl-auth-card .auth-header {
    margin-bottom: 28px;
    text-align: left;
}

.pl-auth-card .auth-header--center {
    text-align: center;
}

.pl-auth-card .auth-header h2 {
    margin: 0 0 8px;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.025em;
    color: var(--pl-text);
}

.pl-auth-card .auth-header p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: var(--pl-muted);
}

/* ── Forms ── */
.form-group {
    margin-bottom: 22px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--pl-muted);
}

.pl-auth-label-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pl-auth-field-tag {
    display: inline-block;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--pl-muted);
    padding: 2px 7px;
    border: 1px solid var(--pl-border-strong);
    border-radius: 999px;
    line-height: 1.3;
}

.pl-auth-field-tag[hidden] {
    display: none;
}

.pl-auth-pass-wrap {
    display: flex;
    align-items: stretch;
}

.pl-auth-pass-wrap input {
    flex: 1 1 auto;
    min-width: 0;
}

.pl-auth-pass-toggle {
    flex: 0 0 auto;
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    border-bottom: 1px solid var(--pl-border-strong);
    background: none;
    color: var(--pl-muted);
    cursor: pointer;
}

.pl-auth-pass-toggle:hover {
    color: var(--pl-text);
}

/* Keep the toggle's underline in sync with the input's focus color so the
   whole line turns blue together. */
.pl-auth-pass-wrap:focus-within .pl-auth-pass-toggle {
    border-bottom-color: var(--pl-blue);
    box-shadow: 0 1px 0 0 var(--pl-blue);
}

.pl-auth-eye--hide {
    display: none;
}

.pl-auth-pass-toggle.is-visible .pl-auth-eye--show {
    display: none;
}

.pl-auth-pass-toggle.is-visible .pl-auth-eye--hide {
    display: inline;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 0 11px;
    border: none;
    border-bottom: 1px solid var(--pl-border-strong);
    border-radius: 0;
    background: transparent;
    color: var(--pl-text);
    font: inherit;
    font-size: 16px;
    line-height: 1.35;
    outline: none;
    appearance: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input::placeholder {
    color: var(--pl-muted-2);
}

.form-group input:focus,
.form-group select:focus {
    border-bottom-color: var(--pl-blue);
    box-shadow: 0 1px 0 0 var(--pl-blue);
}

.form-group input.pl-auth-input--locked,
.form-group input.pl-auth-input--locked:focus {
    color: var(--pl-muted);
    cursor: default;
    border-bottom-color: var(--pl-border);
    box-shadow: none;
}

.form-group select {
    padding-right: 28px;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23949494' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0 center;
    background-repeat: no-repeat;
    background-size: 16px;
}

/* OTP-style code fields */
.form-group--code input {
    font-size: 28px;
    font-weight: 400;
    letter-spacing: 0.35em;
    text-align: center;
    padding: 16px 0;
    font-variant-numeric: tabular-nums;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.checkbox-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 8px;
}

.confirmation-modal-checkbox {
    margin-bottom: 6px;
    padding: 12px 14px;
    background: var(--pl-bg);
    border: 1px solid var(--pl-border-strong);
    transition: border-color 0.15s ease;
    cursor: pointer;
}

.confirmation-modal-checkbox:hover {
    border-color: var(--pl-border);
}

.confirmation-modal-checkbox input[type="checkbox"] {
    appearance: none !important;
    -webkit-appearance: none !important;
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    min-height: 18px !important;
    border: 1px solid var(--pl-border-strong) !important;
    border-radius: 0 !important;
    background: var(--pl-bg) !important;
    cursor: pointer !important;
    margin: 0 !important;
    vertical-align: middle !important;
}

.confirmation-modal-checkbox input[type="checkbox"]:checked {
    background: var(--pl-text) !important;
    border-color: var(--pl-text) !important;
}

.confirmation-modal-checkbox input[type="checkbox"]:checked::after {
    content: '' !important;
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -60%) rotate(45deg) !important;
    width: 5px !important;
    height: 9px !important;
    border: solid #fff !important;
    border-width: 0 2px 2px 0 !important;
}

.confirmation-modal-checkbox label {
    color: var(--pl-text);
    font-size: 13px;
    font-weight: 400;
    margin-left: 8px;
    cursor: pointer;
}

.pl-register-puzzle {
    margin: 4px 0 18px;
}

.pl-register-puzzle__label {
    margin-bottom: 8px;
}

.pl-register-puzzle__label span {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--pl-muted);
}

.pl-register-puzzle__board {
    position: relative;
    width: 100%;
    max-width: 228px;
    aspect-ratio: 300 / 152;
    overflow: hidden;
    border: 1px solid var(--pl-border-strong);
    background: #f4f4f4;
    user-select: none;
    touch-action: none;
}

.pl-register-puzzle__refresh {
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.88);
    color: var(--pl-text);
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

.pl-register-puzzle__refresh:hover {
    background: #fff;
}

.pl-register-puzzle__refresh:focus-visible {
    outline: 2px solid var(--pl-blue);
    outline-offset: 1px;
}

.pl-register-puzzle__board-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.pl-register-puzzle__piece {
    position: absolute;
    top: 50%;
    left: 0;
    width: 16%;
    height: 31.6%;
    transform: translateY(-50%);
    cursor: grab;
    touch-action: none;
    z-index: 2;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.28));
}

.pl-register-puzzle__piece:active {
    cursor: grabbing;
}

.pl-register-puzzle.is-solved .pl-register-puzzle__piece {
    cursor: default;
}

.pl-register-puzzle__piece-img {
    display: block;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.pl-register-puzzle__status {
    margin: 8px 0 0;
    font-size: 12px;
    line-height: 1.4;
    color: var(--pl-muted);
}

.pl-register-puzzle__status[data-kind="error"] {
    color: var(--pl-red);
}

.pl-register-puzzle__status[data-kind="ok"] {
    color: var(--pl-green-text);
}

.submit-button {
    width: 100%;
    margin-top: 10px;
    padding: 18px 24px;
    border: none;
    background: var(--pl-text);
    color: #fff;
    font-family: inherit;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: background 0.2s ease, opacity 0.15s ease, transform 0.15s ease;
}

a.submit-button {
    display: block;
    text-decoration: none;
}

a.submit-button:hover,
a.submit-button:focus {
    color: #fff;
    text-decoration: none;
}

.submit-button::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background: var(--pl-blue);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.submit-button:hover:not(:disabled)::before {
    transform: scaleX(1);
}

.submit-button:hover:not(:disabled) {
    background: #1a1a1a;
}

.submit-button:active:not(:disabled) {
    transform: scale(0.995);
}

.submit-button:disabled,
.submit-button.loading {
    opacity: 0.55;
    cursor: default;
}

.submit-button.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.submit-button.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin: -8px 0 0 -8px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    animation: pl-auth-spin 0.8s linear infinite;
}

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

@keyframes pl-auth-rise {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.switch-text {
    margin: 22px 0 0;
    padding: 0;
    width: 100%;
    text-align: left;
    font-size: 13px;
    line-height: 1.5;
    color: var(--pl-muted);
}

.switch-text + .switch-text,
.switch-text + .terms-text {
    margin-top: 10px;
}

.switch-text a,
.terms-link {
    color: var(--pl-text);
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 400;
    transition: color 0.15s ease;
}

.switch-text a:hover,
.terms-link:hover {
    color: var(--pl-blue);
}

.terms-text {
    margin: 22px 0 0;
    padding: 0;
    width: 100%;
    font-size: 13px;
    line-height: 1.5;
    color: var(--pl-muted);
    text-align: left;
    text-wrap: pretty;
}

.pl-team-invite-signout {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    font: inherit;
    color: inherit;
    cursor: pointer;
    text-decoration: underline;
}

.pl-team-invite-signout:hover {
    color: var(--pl-blue);
}

.error,
.success {
    margin: 0 0 20px;
    padding: 12px 14px;
    font-size: 13px;
    line-height: 1.45;
    text-align: center;
    border: 1px solid var(--pl-border-strong);
    animation: pl-auth-rise 0.35s ease;
}

.error {
    color: var(--pl-red);
    background: #fef2f2;
    border-color: #fecaca;
}

.success {
    color: var(--pl-green-text);
    background: var(--pl-green-soft);
    border-color: #bbf7d0;
}

#message:empty {
    display: none !important;
}

/* Inline links in auth messages match the on-brand "Sign in" link below,
   not the browser-default blue. */
#message a {
    color: var(--pl-text);
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 400;
}

#message a:hover {
    color: var(--pl-muted);
}

.pl-auth-footer,
.auth-footer {
    flex-shrink: 0;
    padding: 16px 32px 24px;
    text-align: center;
    font-size: 12px;
    color: var(--pl-muted-2);
    border-top: 1px solid var(--pl-border);
}

.pl-auth-footer a,
.auth-footer a {
    color: var(--pl-muted);
    text-decoration: none;
}

.pl-auth-footer a:hover,
.auth-footer a:hover {
    color: var(--pl-text);
    text-decoration: underline;
}

.auth-footer-sep {
    margin: 0 8px;
    color: var(--pl-border);
}

/* ── Loading overlay ── */
.loading-overlay,
.pl-auth-loading {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    background: var(--pl-bg);
    color: var(--pl-text);
}

.loading-overlay-content {
    text-align: center;
    max-width: 320px;
    padding: 0 24px;
}

.loading-overlay-title {
    margin: 0 0 8px;
    font-size: 26px;
    font-weight: 400;
    letter-spacing: -0.025em;
    color: var(--pl-text);
}

.loading-overlay-subtitle {
    margin: 0 0 28px;
    font-size: 14px;
    color: var(--pl-muted);
}

.pl-auth-loading-path {
    width: 120px;
    height: 2px;
    margin: 0 auto;
    background: var(--pl-border);
    overflow: hidden;
    position: relative;
}

.pl-auth-loading-path::after {
    content: '';
    position: absolute;
    inset: 0;
    width: 40%;
    background: var(--pl-green);
    animation: pl-auth-loading-sweep 1.1s ease-in-out infinite;
}

@keyframes pl-auth-loading-sweep {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(350%);
    }
}

.pl-auth-invite-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
}

.pl-auth-team-invite-banner {
    width: 100%;
    max-width: 100%;
    margin-bottom: 18px;
    padding: 0 0 12px;
    border-bottom: 1px solid var(--pl-border);
    background: transparent;
}

.pl-auth-team-invite-eyebrow {
    margin: 0 0 10px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--pl-green-text);
}

.pl-auth-team-invite-title {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: var(--pl-text);
    overflow-wrap: anywhere;
}

.pl-auth-team-invite-title strong {
    font-weight: 600;
}

.pl-auth-team-invite-desc {
    margin: 0 0 14px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--pl-muted);
}

.pl-auth-team-invite-number-label {
    margin: 0 0 4px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--pl-muted);
}

.pl-auth-team-invite-number {
    margin: 0;
    font-size: inherit;
    font-weight: 600;
    letter-spacing: 0;
    color: var(--pl-text);
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
}

.pl-auth-team-invite-hint {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: var(--pl-muted);
}

.pl-auth-invite-copy {
    text-align: center;
}

.pl-auth-invite-copy p {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    color: var(--pl-muted);
}

#inviteOnlyMessage .auth-header {
    margin-bottom: 0;
}

.pl-auth-invite-actions .submit-button,
.pl-auth-invite-actions .pl-auth-btn-secondary {
    width: 100%;
    max-width: 280px;
}

.pl-auth-btn-secondary {
    width: 100%;
    padding: 18px 24px;
    border: 1px solid var(--pl-border-strong);
    background: transparent;
    color: var(--pl-text);
    font-family: inherit;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.pl-auth-btn-secondary:hover {
    background: #fafafa;
    border-color: var(--pl-text);
}

.pl-auth-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(14, 14, 14, 0.18);
}

.pl-auth-modal-panel {
    width: 100%;
    max-width: 360px;
    padding: 24px;
    background: var(--pl-bg);
    border: 1px solid var(--pl-border-strong);
}

.pl-auth-modal-panel h3 {
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: 600;
    color: var(--pl-text);
}

.pl-auth-modal-panel p {
    margin: 0 0 20px;
    font-size: 13px;
    line-height: 1.45;
    color: var(--pl-muted);
}

.pl-auth-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 20px;
}

.confirmation-modal-checkbox {
    position: relative;
}

.confirmation-modal-checkbox input[type="checkbox"] {
    position: relative !important;
}

/* ── Responsive ── */
@media (max-width: 860px) {
    .pl-auth-page {
        grid-template-columns: 1fr;
    }

    .pl-auth-brand {
        display: none;
    }

    .pl-auth-welcome-head {
        display: flex;
    }

    .pl-auth-welcome-head .pl-auth-logo {
        display: block;
        margin: 0;
    }

    .pl-auth-welcome-head .pl-auth-logo img {
        margin-left: 0;
        margin-right: auto;
    }

    .pl-auth-main {
        padding: 40px 24px 28px;
    }
}

@media (max-width: 480px) {
    .pl-auth-main {
        padding: 36px 20px 24px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .pl-auth-footer,
    .auth-footer {
        padding: 16px 20px 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pl-auth-brand-logo,
    .pl-auth-brand-eyebrow,
    .pl-auth-brand-headline,
    .pl-auth-brand-sub,
    .pl-auth-brand-products,
    .pl-auth-card,
    .error,
    .success {
        animation: none;
        opacity: 1;
        transform: none;
    }

    .pl-auth-loading-path::after {
        animation: none;
        width: 100%;
    }
}

/* Native login WebView: form only, no marketing column or dashboard overlay. */
html.pl-pathline-native,
html.pl-pathline-native body.pl-auth {
    min-height: 100%;
    height: 100%;
    background: var(--pl-bg);
}

html.pl-pathline-native .pl-auth-brand {
    display: none;
}

html.pl-pathline-native .pl-auth-page,
html.pl-pathline-native .pl-auth-panel {
    display: flex;
    flex-direction: column;
    grid-template-columns: 1fr;
    min-height: 100%;
}

html.pl-pathline-native .pl-auth-main {
    justify-content: flex-start;
    padding: 12px 20px 16px;
}

html.pl-pathline-native .pl-auth-welcome-head,
html.pl-pathline-native .pl-auth-switch-signup,
html.pl-pathline-native .loading-overlay,
html.pl-pathline-native .pl-auth-footer a[href="/docs"],
html.pl-pathline-native .pl-auth-footer a[href="/docs"] + .auth-footer-sep {
    display: none !important;
}
