/* ==========================================================
   LA PIEZA 32 · ACCESO PRO 2026
   Archivo único para:
   - acceso/index.php
   - acceso/recuperar.php
   - acceso/restablecer.php
   - pantallas de resultado relacionadas

   Versión limpia y unificada
========================================================== */

/* ==========================================================
   1. VARIABLES
========================================================== */

:root {
    --lp32-clinic-primary: #1769e0;
    --lp32-clinic-secondary: #20b8cd;
    --lp32-primary-dark: #0b3f9d;

    --lp32-ink: #0f172a;
    --lp32-text: #334155;
    --lp32-muted: #64748b;
    --lp32-soft-text: #8292a8;

    --lp32-surface: #ffffff;
    --lp32-surface-soft: #f7faff;
    --lp32-input-bg: #f8fbff;
    --lp32-border: #dbe5f3;

    --lp32-success: #059669;
    --lp32-warning: #b45309;
    --lp32-danger: #dc2626;

    --lp32-radius-xl: 30px;
    --lp32-radius-lg: 20px;
    --lp32-radius-md: 16px;
    --lp32-radius-sm: 12px;

    --lp32-shadow-shell:
        0 28px 75px rgba(15, 23, 42, .16),
        0 8px 24px rgba(15, 23, 42, .07);

    --lp32-shadow-card:
        0 12px 30px rgba(15, 23, 42, .07);

    --lp32-focus-ring:
        0 0 0 4px rgba(23, 105, 224, .11);

    --lp32-ease:
        cubic-bezier(.22, 1, .36, 1);
}

/* ==========================================================
   2. RESET Y BASE
========================================================== */

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

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

html {
    background: #eef5ff;
}

body.lp32-login-page {
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    overflow-x: hidden;
    color: var(--lp32-ink);
    font-family:
        Inter,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;
    background:
        radial-gradient(
            circle at 12% 12%,
            rgba(23, 105, 224, .18),
            transparent 28%
        ),
        radial-gradient(
            circle at 88% 84%,
            rgba(32, 184, 205, .16),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #edf4ff 0%,
            #f8fbff 48%,
            #e4f8fb 100%
        );
}

img,
svg,
video,
canvas {
    display: block;
    max-width: 100%;
}

button,
input,
select,
textarea {
    max-width: 100%;
    font: inherit;
}

button {
    border: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

[hidden] {
    display: none !important;
}

/* ==========================================================
   3. FONDO DECORATIVO
========================================================== */

.lp32-login-background {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.lp32-bg-orb {
    position: absolute;
    display: block;
    border-radius: 999px;
    filter: blur(18px);
    opacity: .46;
    animation: lp32Float 10s ease-in-out infinite;
}

.lp32-bg-orb-one {
    top: -170px;
    left: -130px;
    width: 430px;
    height: 430px;
    background: rgba(37, 99, 235, .28);
}

.lp32-bg-orb-two {
    top: 17%;
    right: -135px;
    width: 350px;
    height: 350px;
    background: rgba(14, 165, 233, .22);
    animation-delay: -3s;
}

.lp32-bg-orb-three {
    left: 38%;
    bottom: -290px;
    width: 520px;
    height: 520px;
    background: rgba(32, 184, 205, .18);
    animation-delay: -6s;
}

.lp32-grid-pattern {
    position: absolute;
    inset: 0;
    opacity: .28;
    background-image:
        linear-gradient(
            rgba(15, 23, 42, .035) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(15, 23, 42, .035) 1px,
            transparent 1px
        );
    background-size: 34px 34px;
    mask-image:
        linear-gradient(
            to bottom,
            rgba(0, 0, 0, .9),
            transparent 88%
        );
}

/* ==========================================================
   4. CONTENEDOR PRINCIPAL
========================================================== */

.lp32-login-shell {
    position: relative;
    z-index: 1;

    display: grid;
    grid-template-columns:
        minmax(0, 1.05fr)
        minmax(430px, .95fr);

    width: min(1580px, calc(100% - 20px));
    height: calc(100vh - 20px);
    height: calc(100dvh - 20px);
    min-height: 680px;

    margin: 10px auto;

    overflow: hidden;

    border: 1px solid rgba(255, 255, 255, .88);
    border-radius: var(--lp32-radius-xl);

    background: rgba(255, 255, 255, .86);
    box-shadow: var(--lp32-shadow-shell);

    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

/* ==========================================================
   5. PANEL VISUAL IZQUIERDO
========================================================== */

.lp32-login-visual {
    position: relative;
    isolation: isolate;

    min-width: 0;
    min-height: 0;
    height: 100%;

    overflow: hidden;

    color: #ffffff;
    background:
        linear-gradient(
            140deg,
            rgba(7, 34, 84, .94),
            rgba(23, 105, 224, .88) 54%,
            rgba(32, 184, 205, .90)
        ),
        url("../../images/login-dental.jpg")
        center / cover
        no-repeat;
}

.lp32-login-visual::before,
.lp32-login-visual::after {
    content: "";
    position: absolute;
    z-index: -1;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 999px;
}

.lp32-login-visual::before {
    top: -120px;
    right: -180px;
    width: 430px;
    height: 430px;
    box-shadow:
        0 0 0 55px rgba(255, 255, 255, .035),
        0 0 0 110px rgba(255, 255, 255, .025);
}

.lp32-login-visual::after {
    left: -120px;
    bottom: -120px;
    width: 280px;
    height: 280px;
    box-shadow:
        0 0 0 45px rgba(255, 255, 255, .03);
}

.lp32-visual-overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(
            circle at 20% 18%,
            rgba(255, 255, 255, .18),
            transparent 29%
        ),
        linear-gradient(
            to top,
            rgba(5, 20, 46, .20),
            transparent 50%
        );
}

.lp32-visual-content {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 34px 46px 30px;
}

.lp32-visual-top,
.lp32-visual-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.lp32-platform-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.lp32-platform-logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 190px;
    max-width: 44%;
    padding: 9px 12px;

    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 18px;

    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, .14),
            rgba(255, 255, 255, .06)
        );

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .16),
        0 12px 26px rgba(4, 20, 60, .12);

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    transition:
        transform .28s ease,
        border-color .28s ease,
        box-shadow .28s ease;
}

.lp32-platform-logo-wrap:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, .28);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .22),
        0 18px 34px rgba(4, 20, 60, .18);
}

.lp32-platform-logo-image {
    width: 100%;
    height: 48px;
    object-fit: contain;
    object-position: left center;
    filter:
        drop-shadow(
            0 7px 15px rgba(0, 0, 0, .12)
        );
}

.lp32-platform-brand-copy {
    display: none;
}

.lp32-platform-symbol {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 18px;
    color: #fff;
    font-size: 19px;
    font-weight: 800;
    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, .24),
            rgba(255, 255, 255, .11)
        );
    box-shadow:
        0 14px 35px rgba(3, 23, 54, .2);
    backdrop-filter: blur(14px);
}

.lp32-platform-copy,
.lp32-platform-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.lp32-platform-copy strong,
.lp32-platform-text strong {
    font-size: 20px;
    line-height: 1.1;
}

.lp32-platform-copy small,
.lp32-platform-text span {
    color: rgba(255, 255, 255, .72);
    font-size: 13px;
}

.lp32-system-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 9px 12px;

    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;

    color: rgba(255, 255, 255, .90);
    background: rgba(255, 255, 255, .09);

    font-size: 12px;
    font-weight: 600;

    backdrop-filter: blur(10px);
}

.lp32-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #67e8a9;
    box-shadow:
        0 0 0 5px rgba(103, 232, 169, .13);
    animation:
        lp32StatusPulse
        2.2s
        ease-in-out
        infinite;
}

.lp32-visual-center {
    max-width: 760px;
    margin: auto 0;
    padding: 48px 0 40px;
}

.lp32-visual-kicker,
.lp32-visual-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    margin-bottom: 22px;
    padding: 9px 13px;

    border: 1px solid rgba(255, 255, 255, .20);
    border-radius: 999px;

    color: rgba(255, 255, 255, .92);
    background: rgba(255, 255, 255, .10);

    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.lp32-visual-center h1 {
    max-width: 720px;
    margin: 0;
    color: #ffffff;
    font-size: clamp(42px, 4vw, 66px);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -.055em;
    text-wrap: balance;
}

.lp32-visual-center h1 span {
    display: block;
    color: #baf3ff;
}

.lp32-visual-center > p {
    max-width: 690px;
    margin: 24px 0 0;
    color: rgba(255, 255, 255, .80);
    font-size: 17px;
    line-height: 1.72;
}

.lp32-feature-list,
.lp32-feature-grid {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
    gap: 13px;
    margin-top: 28px;
}

.lp32-feature-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;

    min-height: 116px;
    padding: 18px;

    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 20px;

    background: rgba(255, 255, 255, .09);
    box-shadow:
        inset 0 1px rgba(255, 255, 255, .08);

    backdrop-filter: blur(14px);

    transition:
        transform .28s var(--lp32-ease),
        background-color .28s ease,
        border-color .28s ease,
        box-shadow .28s ease;
}

.lp32-feature-item:hover {
    transform:
        translateY(-6px)
        scale(1.012);
    border-color: rgba(255, 255, 255, .28);
    background: rgba(255, 255, 255, .14);
    box-shadow:
        0 18px 34px rgba(2, 18, 48, .15),
        inset 0 1px rgba(255, 255, 255, .13);
}

.lp32-feature-icon {
    display: grid;
    place-items: center;

    width: 42px;
    height: 42px;

    border-radius: 13px;

    background: rgba(255, 255, 255, .16);
    font-size: 17px;
}

.lp32-feature-item strong {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
}

.lp32-feature-item small {
    display: block;
    color: rgba(255, 255, 255, .70);
    font-size: 12px;
    line-height: 1.45;
}

.lp32-visual-bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, .15);
    color: rgba(255, 255, 255, .72);
    font-size: 12px;
}

.lp32-security-message {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.lp32-year {
    color: rgba(255, 255, 255, .90);
    font-weight: 700;
}

/* ==========================================================
   6. PANEL DERECHO
========================================================== */

.lp32-login-panel {
    display: flex;
    align-items: center;
    justify-content: center;

    min-width: 0;
    min-height: 0;
    height: 100%;

    padding: 34px 48px;

    overflow-x: hidden;
    overflow-y: auto;

    background:
        radial-gradient(
            circle at 100% 0%,
            rgba(32, 184, 205, .08),
            transparent 30%
        ),
        linear-gradient(
            180deg,
            rgba(255, 255, 255, .97),
            rgba(247, 250, 255, .94)
        );
}

.lp32-login-panel-inner,
.lp32-login-content,
.lp32-login-card {
    width: 100%;
    max-width: 560px;
}

/* ==========================================================
   7. BRANDING DE CLÍNICA
========================================================== */

.lp32-clinic-brand {
    display: flex;
    align-items: center;
    gap: 16px;

    min-height: 75px;
    margin-bottom: 24px;
    padding: 10px 18px;

    overflow: hidden;

    border: 1px solid var(--lp32-border);
    border-radius: 18px;

    background: rgba(248, 251, 255, .90);
    box-shadow: var(--lp32-shadow-card);
}

.lp32-clinic-logo-wrap {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 auto;

    width: 150px;
    height: 54px;
    padding: 5px 8px;

    border-radius: 14px;

    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, .94),
            rgba(245, 250, 255, .82)
        );

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 1),
        0 9px 22px rgba(15, 23, 42, .07);
}

.lp32-clinic-logo-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.lp32-clinic-logo {
    display: block;

    flex: 0 0 150px;

    width: 150px;
    height: 54px;
    padding: 6px 10px;

    border: 1px solid var(--lp32-border);
    border-radius: 15px;

    object-fit: contain;
    object-position: center;

    background: #ffffff;
    box-shadow:
        0 8px 20px rgba(15, 23, 42, .06);
}

.lp32-clinic-logo-fallback {
    display: grid;
    place-items: center;

    flex: 0 0 54px;

    width: 54px;
    height: 54px;

    border-radius: 15px;

    color: #ffffff;
    background:
        linear-gradient(
            135deg,
            var(--lp32-clinic-primary),
            var(--lp32-clinic-secondary)
        );

    box-shadow:
        0 10px 24px rgba(23, 105, 224, .20);

    font-size: 19px;
}

.lp32-clinic-brand-copy,
.lp32-clinic-copy,
.lp32-clinic-data {
    display: flex;
    flex-direction: column;
    justify-content: center;

    min-width: 0;
}

.lp32-clinic-eyebrow,
.lp32-clinic-copy span,
.lp32-clinic-data span {
    margin-bottom: 4px;
    color: #6d7f98;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .10em;
    line-height: 1.2;
    text-transform: uppercase;
}

.lp32-clinic-name,
.lp32-clinic-copy strong,
.lp32-clinic-data strong {
    display: block;
    overflow: hidden;
    color: var(--lp32-ink);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* ==========================================================
   8. ENCABEZADOS
========================================================== */

.lp32-login-heading {
    margin-bottom: 20px;
}

.lp32-greeting-line,
.lp32-greeting,
.lp32-login-greeting {
    display: flex;
    align-items: center;
    gap: 7px;

    margin-bottom: 7px;

    color: var(--lp32-clinic-primary);
    font-size: 13px;
    font-weight: 700;
}

.lp32-login-heading h2 {
    margin: 0;
    color: var(--lp32-ink);
    font-size: clamp(30px, 2.6vw, 39px);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -.04em;
}

.lp32-login-heading p {
    margin: 11px 0 0;
    color: var(--lp32-muted);
    font-size: 14px;
    line-height: 1.65;
}

/* ==========================================================
   9. MENSAJES Y ALERTAS
========================================================== */

.lp32-login-message,
.lp32-recovery-notice,
.lp32-reset-notice {
    display: flex;
    align-items: flex-start;
    gap: 11px;

    margin: 0 0 18px;
    padding: 13px 15px;

    border: 1px solid transparent;
    border-radius: 14px;

    font-size: 12px;
    line-height: 1.5;
}

.lp32-login-message {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
}

.lp32-login-message.is-error,
.lp32-recovery-notice.is-error,
.lp32-reset-notice.is-error {
    color: #b42318;
    border-color: rgba(220, 38, 38, .18);
    background: rgba(255, 241, 242, .92);
}

.lp32-login-message.is-success,
.lp32-recovery-notice.is-success,
.lp32-reset-notice.is-success {
    color: #08754f;
    border-color: rgba(16, 185, 129, .22);
    background: rgba(236, 253, 245, .92);
}

.lp32-login-message.is-warning,
.lp32-recovery-notice.is-warning,
.lp32-reset-notice.is-warning {
    color: #8a4c06;
    border-color: rgba(245, 158, 11, .22);
    background: rgba(255, 251, 235, .94);
}

.lp32-login-message.is-info,
.lp32-recovery-notice.is-info,
.lp32-reset-notice.is-info {
    color: #1558a6;
    border-color: rgba(23, 105, 224, .18);
    background: rgba(239, 246, 255, .94);
}

.lp32-login-message p,
.lp32-recovery-notice p,
.lp32-reset-notice p {
    margin: 0;
}

.lp32-message-close {
    padding: 5px;
    color: inherit;
    background: transparent;
    cursor: pointer;
}

/* ==========================================================
   10. SELECTOR DE TIPO DE ACCESO
========================================================== */

.lp32-access-selector {
    min-width: 0;
    margin: 0 0 18px;
    padding: 0;
    border: 0;
}

.lp32-access-selector legend {
    margin-bottom: 10px;
    color: var(--lp32-text);
    font-size: 12px;
    font-weight: 700;
}

.lp32-access-options {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.lp32-access-option {
    position: relative;
    display: block;
    cursor: pointer;
}

.lp32-access-option > input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.lp32-access-option-card {
    display: grid;
    grid-template-columns:
        38px
        minmax(0, 1fr)
        22px;
    align-items: center;
    gap: 10px;

    min-height: 76px;
    padding: 13px;

    border: 1px solid var(--lp32-border);
    border-radius: 16px;

    background: #ffffff;

    transition:
        border-color .18s ease,
        box-shadow .18s ease,
        transform .18s ease,
        background .18s ease;
}

.lp32-access-option:hover
.lp32-access-option-card {
    transform: translateY(-2px);
    border-color: #b6ccf8;
    box-shadow:
        0 10px 22px rgba(15, 23, 42, .06);
}

.lp32-access-option > input:checked
+ .lp32-access-option-card {
    transform: translateY(-2px);
    border-color: var(--lp32-clinic-primary);
    background:
        linear-gradient(
            135deg,
            rgba(23, 105, 224, .07),
            rgba(32, 184, 205, .06)
        );
    box-shadow:
        0 0 0 3px rgba(23, 105, 224, .10),
        0 13px 26px rgba(23, 105, 224, .10);
}

.lp32-access-option-icon,
.lp32-access-icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    color: var(--lp32-clinic-primary);
    background: #edf5ff;
}

.lp32-access-option-copy,
.lp32-access-text {
    min-width: 0;
}

.lp32-access-option-copy strong,
.lp32-access-option-copy small,
.lp32-access-text strong,
.lp32-access-text small {
    display: block;
}

.lp32-access-option-copy strong,
.lp32-access-text strong {
    color: #1e293b;
    font-size: 12px;
    line-height: 1.3;
}

.lp32-access-option-copy small,
.lp32-access-text small {
    margin-top: 3px;
    color: var(--lp32-muted);
    font-size: 10px;
    line-height: 1.35;
}

.lp32-access-check {
    display: grid;
    place-items: center;

    width: 20px;
    height: 20px;

    border-radius: 50%;

    color: #ffffff;
    background: var(--lp32-clinic-primary);

    font-size: 9px;

    opacity: 0;
    transform: scale(.70);

    transition: .18s ease;
}

.lp32-access-option > input:checked
+ .lp32-access-option-card
.lp32-access-check {
    opacity: 1;
    transform: scale(1);
}

/* ==========================================================
   11. CAMPOS E INPUTS FLOTANTES
========================================================== */

.lp32-form-group {
    margin-bottom: 14px;
}

.lp32-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.lp32-form-group > label,
.lp32-label-row label {
    display: block;
    margin-bottom: 8px;
    color: var(--lp32-text);
    font-size: 12px;
    font-weight: 700;
}

.lp32-input-wrap,
.lp32-floating-group,
.lp32-floating-control {
    position: relative;
    width: 100%;
}

.lp32-floating-group {
    display: block;
}

.lp32-floating-control {
    display: flex;
    align-items: center;

    height: 58px;
    min-width: 0;

    border: 1px solid var(--lp32-border);
    border-radius: 17px;

    background:
        linear-gradient(
            135deg,
            rgba(247, 250, 255, .98),
            rgba(239, 246, 255, .96)
        );

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .9),
        0 5px 14px rgba(15, 23, 42, .035);

    transition:
        border-color .22s ease,
        box-shadow .22s ease,
        background-color .22s ease,
        transform .22s ease;
}

.lp32-floating-control:focus-within {
    transform: translateY(-2px);
    border-color: var(--lp32-clinic-primary);
    background:
        linear-gradient(
            135deg,
            #ffffff,
            #f5f9ff
        );
    box-shadow:
        var(--lp32-focus-ring),
        0 12px 30px rgba(23, 105, 224, .10);
}

.lp32-input {
    width: 100%;
    height: 52px;
    padding: 0 48px 0 44px;

    border: 1px solid var(--lp32-border);
    border-radius: 15px;
    outline: 0;

    color: var(--lp32-ink);
    background: var(--lp32-input-bg);

    box-shadow:
        inset 0 1px 2px rgba(15, 23, 42, .02);

    transition:
        border-color .18s ease,
        box-shadow .18s ease,
        background .18s ease;
}

.lp32-input:hover {
    border-color: #c2d4ec;
}

.lp32-input:focus {
    border-color: var(--lp32-clinic-primary);
    background: #ffffff;
    box-shadow:
        var(--lp32-focus-ring),
        0 10px 24px rgba(23, 105, 224, .06);
}

.lp32-floating-control
.lp32-floating-input {
    position: relative;
    z-index: 1;

    display: block;

    width: 100%;
    height: 100%;
    min-width: 0;

    margin: 0;
    padding:
        18px
        50px
        0
        52px;

    border: 0;
    border-radius: inherit;
    outline: 0;

    color: var(--lp32-ink);
    background: transparent;

    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;

    appearance: none;
    -webkit-appearance: none;
}

.lp32-floating-control
.lp32-floating-input:focus {
    border: 0;
    outline: 0;
    background: transparent;
    box-shadow: none;
}

.lp32-input-icon {
    position: absolute;
    z-index: 4;
    top: 50%;
    left: 17px;

    display: grid;
    place-items: center;

    width: 22px;
    height: 22px;

    color: #8ca1bd;
    font-size: 15px;

    pointer-events: none;

    transform: translateY(-50%);
    transition:
        color .22s ease,
        transform .22s ease;
}

.lp32-floating-control:focus-within
.lp32-input-icon {
    color: var(--lp32-clinic-primary);
    transform:
        translateY(-50%)
        scale(1.10);
}

.lp32-floating-label {
    position: absolute;
    z-index: 3;

    top: 50%;
    left: 52px;

    max-width: calc(100% - 110px);

    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;

    color: #7b8da6;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;

    pointer-events: none;

    transform: translateY(-50%);
    transform-origin: left center;

    transition:
        top .22s var(--lp32-ease),
        color .22s ease,
        font-size .22s ease,
        font-weight .22s ease,
        letter-spacing .22s ease,
        transform .22s var(--lp32-ease);
}

.lp32-floating-input:focus
~ .lp32-floating-label,
.lp32-floating-input:not(:placeholder-shown)
~ .lp32-floating-label,
.lp32-floating-control.is-filled
.lp32-floating-label {
    top: 10px;
    color: var(--lp32-clinic-primary);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .065em;
    text-transform: uppercase;
    transform: none;
}

.lp32-input-status,
.lp32-input-state {
    position: absolute;
    z-index: 6;
    top: 50%;
    right: 17px;

    display: grid;
    place-items: center;

    width: 24px;
    height: 24px;

    color: var(--lp32-success);
    font-size: 15px;

    opacity: 0;
    visibility: hidden;

    pointer-events: none;

    transform:
        translateY(-50%)
        scale(.65);

    transition:
        opacity .2s ease,
        visibility .2s ease,
        transform .22s var(--lp32-ease);
}

.lp32-floating-control.is-valid
.lp32-input-status,
.lp32-floating-control.is-valid
.lp32-input-state {
    opacity: 1;
    visibility: visible;
    transform:
        translateY(-50%)
        scale(1);
}

.lp32-floating-control.is-error {
    border-color: rgba(220, 38, 38, .62);
    background:
        linear-gradient(
            135deg,
            rgba(255, 248, 248, .98),
            rgba(255, 241, 242, .95)
        );
    box-shadow:
        0 0 0 4px rgba(220, 38, 38, .075),
        0 9px 22px rgba(220, 38, 38, .07);
}

.lp32-floating-control.is-error
.lp32-floating-label,
.lp32-floating-control.is-error
.lp32-input-icon {
    color: var(--lp32-danger);
}

.lp32-field-message,
.lp32-field-error {
    display: block;
    width: 100%;
    min-height: 0;
    margin: 6px 0 0;
    padding-left: 5px;
    color: var(--lp32-danger);
    font-size: 10px;
    font-weight: 600;
    line-height: 1.4;
}

.lp32-field-message:empty,
.lp32-field-error:empty {
    display: none;
}

.lp32-password-toggle,
.lp32-toggle-password {
    position: absolute;
    z-index: 7;
    top: 50%;
    right: 9px;

    display: grid;
    place-items: center;

    width: 40px;
    height: 40px;

    margin: 0;
    padding: 0;

    border: 0;
    border-radius: 12px;

    color: #8194ad;
    background: transparent;

    cursor: pointer;

    transform: translateY(-50%);

    transition:
        color .2s ease,
        background-color .2s ease,
        transform .18s ease,
        box-shadow .2s ease;
}

.lp32-password-toggle:hover,
.lp32-toggle-password:hover {
    color: var(--lp32-clinic-primary);
    background: rgba(23, 105, 224, .08);
}

.lp32-password-toggle:active,
.lp32-toggle-password:active {
    transform:
        translateY(-50%)
        scale(.92);
}

.lp32-caps-warning {
    color: var(--lp32-warning);
    background: transparent;
    font-size: 10px;
    font-weight: 700;
}

.lp32-caps-warning:not([hidden]) {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin: 0 0 6px auto;
    padding: 5px 8px;
    border-radius: 8px;
    background: #fff7df;
}

/* ==========================================================
   12. OPCIONES DEL FORMULARIO
========================================================== */

.lp32-form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;

    margin: 2px 0 18px;

    color: var(--lp32-muted);
    font-size: 12px;
}

.lp32-remember-control,
.lp32-remember-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.lp32-remember-control > input,
.lp32-remember-label > input {
    position: absolute;
    opacity: 0;
}

.lp32-custom-checkbox {
    display: grid;
    place-items: center;

    width: 18px;
    height: 18px;

    border: 1px solid #cbd5e1;
    border-radius: 5px;

    color: #ffffff;
    background: #ffffff;

    font-size: 9px;

    transition: .18s ease;
}

.lp32-remember-control > input:checked
+ .lp32-custom-checkbox,
.lp32-remember-label > input:checked
+ .lp32-custom-checkbox {
    border-color: var(--lp32-clinic-primary);
    background: var(--lp32-clinic-primary);
}

.lp32-forgot-link,
.lp32-login-help a,
.lp32-recovery-back a,
.lp32-reset-back a {
    color: var(--lp32-clinic-primary);
    font-weight: 700;
}

.lp32-forgot-link:hover,
.lp32-login-help a:hover,
.lp32-recovery-back a:hover,
.lp32-reset-back a:hover {
    text-decoration: underline;
}

/* ==========================================================
   13. BOTONES
========================================================== */

.lp32-login-button,
.lp32-btn-primary {
    position: relative;

    display: block;

    width: 100%;
    min-height: 54px;
    padding: 0;

    overflow: hidden;
    isolation: isolate;

    border: 0;
    border-radius: 15px;

    color: #ffffff;
    background:
        linear-gradient(
            135deg,
            var(--lp32-clinic-primary),
            var(--lp32-clinic-secondary)
        );

    /*box-shadow:
        0 15px 30px rgba(23, 105, 224, .23);*/

    cursor: pointer;

    transition:
        transform .22s ease,
        box-shadow .25s ease,
        filter .25s ease;
}

.lp32-login-button:hover,
.lp32-btn-primary:hover {
    transform: translateY(-2px);
    filter: brightness(1.035);
    box-shadow:
        0 16px 32px rgba(23, 105, 224, .18),
        0 6px 16px rgba(32, 188, 205, .12);
}

.lp32-login-button:active,
.lp32-btn-primary:active {
    transform:
        translateY(0)
        scale(.985);
}

.lp32-login-button:disabled,
.lp32-btn-primary:disabled {
    cursor: wait;
    opacity: .82;
}

.lp32-button-content,
.lp32-button-loading {
    position: relative;
    z-index: 2;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    min-height: 54px;

    font-size: 14px;
    font-weight: 800;
}

.lp32-button-loading {
    display: none;
}

.lp32-login-button.is-loading
.lp32-button-content {
    display: none;
}

.lp32-login-button.is-loading
.lp32-button-loading {
    display: flex;
}

.lp32-button-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, .35);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: lp32Spin .75s linear infinite;
}

/* ==========================================================
   14. RECUPERAR Y RESTABLECER
========================================================== */

.lp32-recovery-form,
.lp32-reset-form {
    margin-top: 20px;
}

.lp32-recovery-button,
.lp32-reset-button {
    margin-top: 4px;
}

.lp32-recovery-back,
.lp32-reset-back {
    display: flex;
    justify-content: center;
    margin-top: 17px;
}

.lp32-recovery-back a,
.lp32-reset-back a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    text-decoration: none;
    transition:
        transform .2s ease,
        color .2s ease;
}

.lp32-recovery-back a:hover,
.lp32-reset-back a:hover {
    transform: translateX(-3px);
}

/* Compatibilidad controlada con restablecer.php antiguo */
.lp32-login-wrapper {
    width: 100%;
}

.lp32-left-panel {
    position: relative;
    min-width: 0;
    height: 100%;
    padding: 42px 48px;
    overflow: hidden;
    color: #ffffff;
    background:
        linear-gradient(
            140deg,
            rgba(7, 34, 84, .94),
            rgba(23, 105, 224, .88) 54%,
            rgba(32, 184, 205, .90)
        );
}

.lp32-left-panel h1 {
    margin: 28px 0 16px;
    color: #ffffff;
    font-size: clamp(42px, 4vw, 64px);
    line-height: 1.04;
    letter-spacing: -.05em;
}

.lp32-left-panel > p {
    max-width: 620px;
    margin: 0;
    color: rgba(255, 255, 255, .80);
    font-size: 16px;
    line-height: 1.7;
}

.lp32-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.lp32-brand-logo img {
    width: 185px;
    height: 52px;
    object-fit: contain;
}

.lp32-brand h3,
.lp32-brand p {
    margin: 0;
}

.lp32-brand p {
    color: rgba(255, 255, 255, .72);
    font-size: 12px;
}

.lp32-chip {
    display: inline-flex;
    margin-top: 110px;
    padding: 9px 13px;
    border: 1px solid rgba(255, 255, 255, .20);
    border-radius: 999px;
    background: rgba(255, 255, 255, .10);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
}

.lp32-right-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    height: 100%;
    padding: 34px 48px;
    overflow-y: auto;
    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, .97),
            rgba(247, 250, 255, .94)
        );
}

.lp32-right-panel > form {
    width: 100%;
    max-width: 560px;
}

.lp32-right-panel h2 {
    margin: 0;
    color: var(--lp32-ink);
    font-size: clamp(30px, 2.6vw, 39px);
    line-height: 1.08;
    letter-spacing: -.04em;
}

.lp32-right-panel > form > p {
    margin: 11px 0 20px;
    color: var(--lp32-muted);
    font-size: 14px;
    line-height: 1.65;
}

.lp32-header-card {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 82px;
    margin-bottom: 24px;
    padding: 14px 18px;
    border: 1px solid var(--lp32-border);
    border-radius: 18px;
    background: rgba(248, 251, 255, .90);
    box-shadow: var(--lp32-shadow-card);
}

.lp32-header-card img,
.lp32-clinic-logo-img {
    width: 150px;
    height: 54px;
    object-fit: contain;
}

.lp32-header-card div {
    min-width: 0;
}

.lp32-header-card small,
.lp32-header-card strong {
    display: block;
}

.lp32-header-card small {
    margin-bottom: 4px;
    color: #6d7f98;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .10em;
}

.lp32-header-card strong {
    overflow: hidden;
    color: var(--lp32-ink);
    font-size: 14px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* ==========================================================
   15. AYUDA Y FOOTER
========================================================== */

.lp32-login-help {
    margin: 15px 0 0;
    color: var(--lp32-muted);
    font-size: 11px;
    text-align: center;
}

.lp32-login-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;

    margin-top: 20px;
    padding-top: 16px;

    border-top: 1px solid var(--lp32-border);

    color: var(--lp32-muted);
    font-size: 10px;
}

.lp32-footer-security,
.lp32-powered-by {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.lp32-powered-by strong {
    color: var(--lp32-text);
}

/* ==========================================================
   16. OVERLAY
========================================================== */

.lp32-access-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;

    display: grid;
    place-items: center;

    padding: 20px;

    opacity: 0;
    visibility: hidden;

    background: rgba(6, 19, 43, .72);

    backdrop-filter: blur(12px);

    transition:
        opacity .22s ease,
        visibility .22s ease;
}

.lp32-access-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

.lp32-access-overlay-card {
    width: min(410px, 100%);
    padding: 34px;

    border: 1px solid rgba(255, 255, 255, .65);
    border-radius: 25px;

    text-align: center;

    background: rgba(255, 255, 255, .96);
    box-shadow:
        0 30px 70px rgba(0, 0, 0, .28);
}

.lp32-overlay-logo {
    display: grid;
    place-items: center;

    width: 62px;
    height: 62px;
    margin: 0 auto 16px;

    border-radius: 19px;

    color: #ffffff;
    background:
        linear-gradient(
            135deg,
            var(--lp32-clinic-primary),
            var(--lp32-clinic-secondary)
        );
}

.lp32-overlay-spinner {
    width: 34px;
    height: 34px;
    margin: 0 auto 17px;

    border: 3px solid #dbeafe;
    border-top-color: var(--lp32-clinic-primary);
    border-radius: 50%;

    animation: lp32Spin .8s linear infinite;
}

.lp32-overlay-progress {
    height: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: #e8eff8;
}

.lp32-overlay-progress span {
    display: block;
    width: 38%;
    height: 100%;
    border-radius: inherit;
    background:
        linear-gradient(
            90deg,
            var(--lp32-clinic-primary),
            var(--lp32-clinic-secondary)
        );
    animation:
        lp32Progress
        1.25s
        ease-in-out
        infinite;
}

/* ==========================================================
   17. MICROANIMACIONES
========================================================== */

.lp32-page-loading
.lp32-platform-brand,
.lp32-page-loading
.lp32-system-status,
.lp32-page-loading
.lp32-visual-kicker,
.lp32-page-loading
.lp32-visual-center h1,
.lp32-page-loading
.lp32-visual-center > p,
.lp32-page-loading
.lp32-feature-item,
.lp32-page-loading
.lp32-visual-bottom,
.lp32-page-loading
.lp32-clinic-brand,
.lp32-page-loading
.lp32-login-heading,
.lp32-page-loading
.lp32-access-selector,
.lp32-page-loading
.lp32-login-form > .lp32-form-group,
.lp32-page-loading
.lp32-form-options,
.lp32-page-loading
.lp32-login-button,
.lp32-page-loading
.lp32-login-help,
.lp32-page-loading
.lp32-login-footer {
    opacity: 0;
}

.lp32-page-ready .lp32-platform-brand {
    animation:
        lp32RevealLeft
        .65s
        var(--lp32-ease)
        both;
}

.lp32-page-ready .lp32-system-status,
.lp32-page-ready .lp32-clinic-brand,
.lp32-page-ready .lp32-login-heading,
.lp32-page-ready .lp32-access-selector,
.lp32-page-ready .lp32-login-form > .lp32-form-group,
.lp32-page-ready .lp32-form-options,
.lp32-page-ready .lp32-login-button {
    animation:
        lp32RevealRight
        .62s
        var(--lp32-ease)
        both;
}

.lp32-page-ready .lp32-visual-kicker,
.lp32-page-ready .lp32-visual-center h1,
.lp32-page-ready .lp32-visual-center > p,
.lp32-page-ready .lp32-feature-item,
.lp32-page-ready .lp32-visual-bottom,
.lp32-page-ready .lp32-login-help,
.lp32-page-ready .lp32-login-footer {
    animation:
        lp32RevealUp
        .62s
        var(--lp32-ease)
        both;
}

/* ==========================================================
   18. KEYFRAMES
========================================================== */

@keyframes lp32Float {
    0%,
    100% {
        transform:
            translate3d(0, 0, 0)
            scale(1);
    }

    50% {
        transform:
            translate3d(0, 18px, 0)
            scale(1.04);
    }
}

@keyframes lp32StatusPulse {
    0%,
    100% {
        box-shadow:
            0 0 0 5px rgba(103, 232, 169, .13);
    }

    50% {
        box-shadow:
            0 0 0 9px rgba(103, 232, 169, .04);
    }
}

@keyframes lp32RevealLeft {
    from {
        opacity: 0;
        transform: translate3d(-22px, 0, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes lp32RevealRight {
    from {
        opacity: 0;
        transform: translate3d(22px, 0, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes lp32RevealUp {
    from {
        opacity: 0;
        transform: translate3d(0, 18px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes lp32Spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes lp32Progress {
    0% {
        transform: translateX(-115%);
    }

    100% {
        transform: translateX(310%);
    }
}

/* ==========================================================
   19. ESCRITORIO BAJO
========================================================== */

@media (min-width: 901px) and (max-height: 900px) {
    .lp32-login-shell {
        width: min(1580px, calc(100% - 24px));
        min-height: calc(100vh - 24px);
        min-height: calc(100dvh - 24px);
        margin: 12px auto;
        border-radius: 28px;
    }

    .lp32-visual-content {
        padding: 28px 40px 24px;
    }

    .lp32-visual-center {
        padding: 34px 0 28px;
    }

    .lp32-visual-center h1 {
        font-size: clamp(40px, 3.7vw, 60px);
    }

    .lp32-visual-center > p {
        margin-top: 18px;
        font-size: 15px;
        line-height: 1.6;
    }

    .lp32-feature-list,
    .lp32-feature-grid {
        margin-top: 22px;
    }

    .lp32-feature-item {
        min-height: 104px;
        padding: 15px;
    }

    .lp32-login-panel,
    .lp32-right-panel {
        padding: 24px 42px;
    }

    .lp32-clinic-brand,
    .lp32-header-card {
        margin-bottom: 16px;
    }

    .lp32-login-heading {
        margin-bottom: 15px;
    }

    .lp32-login-heading h2,
    .lp32-right-panel h2 {
        font-size: 34px;
    }

    .lp32-floating-control {
        height: 52px;
    }

    .lp32-login-button,
    .lp32-btn-primary,
    .lp32-button-content,
    .lp32-button-loading {
        min-height: 49px;
    }
}

/* ==========================================================
   20. TABLET
========================================================== */

@media (max-width: 1180px) {
    .lp32-login-shell {
        width: min(1120px, calc(100% - 24px));
        margin: 12px auto;
        grid-template-columns:
            minmax(0, 1fr)
            minmax(410px, .96fr);
    }

    .lp32-visual-content {
        padding: 32px;
    }

    .lp32-login-panel,
    .lp32-right-panel {
        padding: 34px 30px;
    }

    .lp32-feature-list,
    .lp32-feature-grid {
        grid-template-columns: 1fr;
    }

    .lp32-feature-item {
        display: grid;
        grid-template-columns:
            42px
            minmax(0, 1fr);
        min-height: auto;
    }
}

@media (max-width: 900px) {
    .lp32-login-shell {
        width: 100%;
        min-height: 100vh;
        min-height: 100dvh;
        height: auto;
        margin: 0;
        grid-template-columns: 1fr;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .lp32-login-visual,
    .lp32-left-panel {
        min-height: auto;
        height: auto;
    }

    .lp32-visual-content {
        padding: 30px 28px;
    }

    .lp32-visual-center {
        padding: 46px 0 34px;
    }

    .lp32-visual-center h1,
    .lp32-left-panel h1 {
        font-size: clamp(39px, 8vw, 58px);
    }

    .lp32-feature-list,
    .lp32-feature-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

    .lp32-feature-item {
        display: flex;
    }

    .lp32-login-panel,
    .lp32-right-panel {
        height: auto;
        padding: 46px 28px 54px;
    }
}

/* ==========================================================
   21. MÓVIL
========================================================== */

@media (max-width: 640px) {
    body.lp32-login-page {
        min-height: 100dvh;
        overflow-y: auto;
        overscroll-behavior-y: none;
    }

    .lp32-login-shell {
        display: block;
        width: 100%;
        height: auto;
        min-height: 100dvh;
        margin: 0;
        border: 0;
        border-radius: 0;
        overflow: visible;
        box-shadow: none;
        backdrop-filter: none;
    }

    .lp32-login-visual,
    .lp32-left-panel {
        width: 100%;
        height: auto;
        min-height: 0;
        padding: 0;
        border-radius: 0 0 26px 26px;
        overflow: hidden;
    }

    .lp32-visual-content,
    .lp32-left-panel {
        min-height: 0;
        padding: 18px 20px 22px;
    }

    .lp32-system-status {
        display: none;
    }

    .lp32-platform-logo-wrap {
        width: 170px;
        max-width: 70%;
        padding: 7px 10px;
        border-radius: 14px;
    }

    .lp32-platform-logo-image {
        height: 41px;
    }

    .lp32-visual-center {
        padding: 20px 0 0;
    }

    .lp32-visual-kicker,
    .lp32-visual-tag {
        padding: 7px 12px;
        font-size: 9px;
        letter-spacing: .07em;
    }

    .lp32-visual-center h1,
    .lp32-left-panel h1 {
        max-width: 315px;
        margin-top: 13px;
        font-size: 29px;
        line-height: 1.04;
    }

    .lp32-visual-center > p,
    .lp32-feature-list,
    .lp32-feature-grid,
    .lp32-visual-bottom {
        display: none;
    }

    .lp32-chip {
        margin-top: 24px;
    }

    .lp32-left-panel > p {
        display: none;
    }

    .lp32-login-panel,
    .lp32-right-panel {
        display: block;
        width: 100%;
        height: auto;
        min-height: 0;
        padding: 20px 16px 30px;
        overflow: visible;
    }

    .lp32-login-panel-inner,
    .lp32-login-content,
    .lp32-login-card,
    .lp32-right-panel > form {
        width: 100%;
        max-width: none;
    }

    .lp32-clinic-brand,
    .lp32-header-card {
        gap: 11px;
        min-height: 72px;
        margin-bottom: 17px;
        padding: 10px 12px;
        border-radius: 16px;
    }

    .lp32-clinic-logo,
    .lp32-clinic-logo-wrap,
    .lp32-header-card img,
    .lp32-clinic-logo-img {
        flex-basis: 125px;
        width: 125px;
        height: 48px;
        padding: 5px 8px;
    }

    .lp32-clinic-eyebrow,
    .lp32-clinic-copy span,
    .lp32-clinic-data span,
    .lp32-header-card small {
        font-size: 8px;
    }

    .lp32-clinic-name,
    .lp32-clinic-copy strong,
    .lp32-clinic-data strong,
    .lp32-header-card strong {
        font-size: 12px;
    }

    .lp32-login-heading {
        margin-bottom: 17px;
    }

    .lp32-login-heading h2,
    .lp32-right-panel h2 {
        font-size: 28px;
    }

    .lp32-login-heading p,
    .lp32-right-panel > form > p {
        margin-top: 7px;
        font-size: 13px;
        line-height: 1.45;
    }

    .lp32-access-options {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .lp32-access-option-card {
        min-height: 62px;
        padding: 9px 11px;
        border-radius: 15px;
    }

    .lp32-floating-group {
        margin-bottom: 13px;
    }

    .lp32-floating-control {
        height: 54px;
        border-radius: 15px;
    }

    .lp32-floating-control
    .lp32-floating-input {
        padding:
            17px
            46px
            0
            47px;
        font-size: 14px;
    }

    .lp32-input-icon {
        left: 15px;
        font-size: 14px;
    }

    .lp32-floating-label {
        left: 47px;
        max-width: calc(100% - 100px);
        font-size: 13px;
    }

    .lp32-floating-input:focus
    ~ .lp32-floating-label,
    .lp32-floating-input:not(:placeholder-shown)
    ~ .lp32-floating-label,
    .lp32-floating-control.is-filled
    .lp32-floating-label {
        top: 9px;
        font-size: 8px;
    }

    .lp32-form-options {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
        margin-bottom: 16px;
    }

    .lp32-login-button,
    .lp32-btn-primary,
    .lp32-button-content,
    .lp32-button-loading {
        min-height: 51px;
        border-radius: 15px;
    }

    .lp32-login-footer {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
        margin-top: 17px;
        padding-top: 14px;
    }

    .lp32-access-overlay-card {
        width: calc(100% - 28px);
        max-width: 390px;
        padding: 25px 18px;
        border-radius: 22px;
    }
}

/* ==========================================================
   22. ACCESIBILIDAD
========================================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

@media (min-width: 901px) {
    body.lp32-login-page {
        overflow: hidden;
    }
}






/* ==========================================================
   LP32 LOGIN - MOVIL COMPACTO FINAL
   SOLO <= 640px
   ========================================================== */

@media (max-width: 640px) {

    /* ======================================================
       1. PANEL AZUL SUPERIOR MÁS BAJO
       ====================================================== */

    .lp32-login-visual {
        min-height: 0 !important;
        height: auto !important;
        border-radius: 0 0 22px 22px !important;
    }

    .lp32-visual-content {
        min-height: 0 !important;
        padding: 14px 20px 16px !important;
    }

    /* Logo La Pieza 32 */
    .lp32-platform-logo-wrap {
        width: 155px !important;
        max-width: 62% !important;
        padding: 6px 9px !important;

        border: 1px solid rgba(255,255,255,.95) !important;
        border-radius: 13px !important;

        background: #ffffff !important;

        box-shadow:
            0 7px 20px rgba(5, 25, 60, .15) !important;

        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    .lp32-platform-logo-image {
        height: 36px !important;
        object-fit: contain !important;
    }

    /* No necesitamos estado en móvil */
    .lp32-system-status {
        display: none !important;
    }

    /* Centro del panel */
    .lp32-visual-center {
        margin: 0 !important;
        padding: 12px 0 0 !important;
    }

    /* Etiqueta Gestión dental conectada */
    .lp32-visual-kicker,
    .lp32-visual-tag {
        margin: 0 0 10px !important;
        padding: 6px 10px !important;

        font-size: 8px !important;
        line-height: 1 !important;
    }

    /* Título */
    .lp32-visual-center h1 {
        max-width: 310px !important;

        margin: 0 !important;

        font-size: 25px !important;
        line-height: 1.04 !important;
        letter-spacing: -.04em !important;
    }

    /* En móvil ocultamos contenido comercial */
    .lp32-visual-center > p,
    .lp32-feature-list,
    .lp32-feature-grid,
    .lp32-visual-bottom {
        display: none !important;
    }


    /* ======================================================
       2. FORMULARIO
       NO REDUCIMOS INPUTS
       ====================================================== */

    .lp32-login-panel {
        display: block !important;

        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;

        padding: 16px 18px 26px !important;

        overflow: visible !important;
    }

    .lp32-login-panel-inner,
    .lp32-login-content,
    .lp32-login-card {
        width: 100% !important;
        max-width: none !important;
    }

    /* Tarjeta clínica */
    .lp32-clinic-brand {
        min-height: 66px !important;

        margin-bottom: 13px !important;
        padding: 9px 12px !important;

        border-radius: 15px !important;
    }

    /* Logo / icono de clínica */
    .lp32-clinic-logo-fallback {
        flex: 0 0 46px !important;

        width: 46px !important;
        height: 46px !important;

        border-radius: 13px !important;

        font-size: 17px !important;
    }

    /* Bienvenida */
    .lp32-login-heading {
        margin-bottom: 14px !important;
    }

    .lp32-login-heading h2 {
        font-size: 27px !important;
        line-height: 1.04 !important;
    }

    .lp32-login-heading p {
        margin-top: 6px !important;
        line-height: 1.4 !important;
    }

    /* Mantener inputs con buen tamaño */
    .lp32-floating-control {
        height: 58px !important;
    }

    /* Selector Personal / Especialista */
    .lp32-access-selector {
        margin-bottom: 14px !important;
    }

    .lp32-access-options {
        gap: 8px !important;
    }

    .lp32-access-option-card {
        min-height: 64px !important;
    }
}






















/* ==========================================================
   PORTAL PACIENTE - CABECERA MOVIL COMPACTA 2 COLUMNAS
   SOLO /paciente/
   NO AFECTA LOGIN DEL PERSONAL
   ========================================================== */

@media (max-width: 640px) {

    .lp32-patient-login-page .lp32-login-visual {
        height: auto !important;
        min-height: 0 !important;
        border-radius: 0 0 22px 22px !important;
    }

    .lp32-patient-login-page .lp32-visual-content {
        display: grid !important;
        grid-template-columns: 104px minmax(0, 1fr) !important;
        align-items: center !important;
        column-gap: 14px !important;

        min-height: 0 !important;

        padding:
            calc(12px + env(safe-area-inset-top))
            18px
            14px !important;
    }


    /* ======================================================
       COLUMNA IZQUIERDA - LOGO
       ====================================================== */

    .lp32-patient-login-page .lp32-visual-top {
        display: block !important;
        width: 104px !important;
        min-width: 0 !important;
    }

    .lp32-patient-login-page .lp32-platform-brand {
        display: block !important;
        width: 100% !important;
    }

    .lp32-patient-login-page .lp32-platform-logo-wrap {
        width: 104px !important;
        max-width: 104px !important;

        margin: 0 !important;
        padding: 7px 8px !important;

        border-radius: 13px !important;

        background: #ffffff !important;

        border:
            1px solid
            rgba(255, 255, 255, .95) !important;

        box-shadow:
            0 8px 20px
            rgba(5, 25, 60, .16) !important;
    }

    .lp32-patient-login-page .lp32-platform-logo-image {
        width: 100% !important;
        height: 34px !important;

        object-fit: contain !important;
        object-position: center !important;
    }

    .lp32-patient-login-page .lp32-platform-brand-copy {
        display: none !important;
    }

    .lp32-patient-login-page .lp32-system-status {
        display: none !important;
    }


    /* ======================================================
       COLUMNA DERECHA - TEXTO
       ====================================================== */

    .lp32-patient-login-page .lp32-visual-center {
        width: 100% !important;
        min-width: 0 !important;

        margin: 0 !important;
        padding: 0 !important;
    }

    .lp32-patient-login-page .lp32-visual-kicker {
        margin: 0 0 7px !important;

        padding: 5px 8px !important;

        font-size: 7.5px !important;
        line-height: 1 !important;
        letter-spacing: .06em !important;
    }

    .lp32-patient-login-page .lp32-visual-center h1 {
        width: 100% !important;
        max-width: none !important;

        margin: 0 !important;

        font-size: 20px !important;
        line-height: 1.03 !important;
        letter-spacing: -.035em !important;
    }

    .lp32-patient-login-page .lp32-visual-center h1 span {
        display: block !important;
    }


    /* Ocultar material comercial en login móvil */
    .lp32-patient-login-page .lp32-visual-center > p,
    .lp32-patient-login-page .lp32-feature-list,
    .lp32-patient-login-page .lp32-feature-grid,
    .lp32-patient-login-page .lp32-visual-bottom {
        display: none !important;
    }


    /* ======================================================
       FORMULARIO SUBE MÁS
       ====================================================== */

    .lp32-patient-login-page .lp32-login-panel {
        padding: 14px 18px 24px !important;
    }

    .lp32-patient-login-page .lp32-clinic-brand {
        margin-bottom: 12px !important;
    }

    .lp32-patient-login-page .lp32-login-heading {
        margin-bottom: 13px !important;
    }


    /* ======================================================
       TARJETA ACCESO PACIENTE MÁS COMPACTA
       ====================================================== */

    .lp32-patient-login-page
    .lp32-patient-access-card {
        min-height: 66px !important;

        padding: 10px 12px !important;

        border-radius: 15px !important;
    }

    .lp32-patient-login-page
    .lp32-patient-access-icon {
        flex-basis: 40px !important;

        width: 40px !important;
        height: 40px !important;

        border-radius: 12px !important;
    }

    .lp32-patient-login-page
    .lp32-patient-access-copy small {
        margin-top: 2px !important;
        line-height: 1.3 !important;
    }
}
















/* ==========================================================
   LA PIEZA 32
   ACCESO CLÍNICA - CABECERA MÓVIL COMPACTA
   SOLO /acceso/
   PC NO SE MODIFICA
   ========================================================== */

@media (max-width: 640px) {

    /* ------------------------------------------------------
       BLOQUE AZUL
       ------------------------------------------------------ */

    .lp32-staff-login-page .lp32-login-visual {
        height: auto !important;
        min-height: 0 !important;
        border-radius: 0 0 22px 22px !important;
    }

    .lp32-staff-login-page .lp32-visual-content {
        display: grid !important;
        grid-template-columns: 96px minmax(0, 1fr) !important;
        align-items: center !important;
        column-gap: 14px !important;

        min-height: 0 !important;

        padding:
            calc(12px + env(safe-area-inset-top))
            18px
            14px !important;
    }


    /* ------------------------------------------------------
       COLUMNA IZQUIERDA
       MARCA LA PIEZA 32
       ------------------------------------------------------ */

    .lp32-staff-login-page .lp32-visual-top {
        display: block !important;
        width: 96px !important;
        min-width: 0 !important;
        margin: 0 !important;
    }

    .lp32-staff-login-page .lp32-platform-brand {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;

        width: 96px !important;
        min-width: 0 !important;

        margin: 0 !important;
        padding: 8px 6px !important;

        border-radius: 14px !important;

        background: rgba(255, 255, 255, .12) !important;
        border: 1px solid rgba(255, 255, 255, .18) !important;
    }

    .lp32-staff-login-page .lp32-platform-symbol {
        width: 42px !important;
        height: 42px !important;
        min-width: 42px !important;

        margin: 0 0 5px !important;

        border-radius: 11px !important;
    }

    .lp32-staff-login-page .lp32-platform-symbol span {
        font-size: 16px !important;
    }

    .lp32-staff-login-page .lp32-platform-copy {
        display: block !important;
        text-align: center !important;
        min-width: 0 !important;
    }

    .lp32-staff-login-page .lp32-platform-copy strong {
        display: block !important;

        font-size: 10px !important;
        line-height: 1.15 !important;

        white-space: nowrap !important;
    }

    .lp32-staff-login-page .lp32-platform-copy small {
        display: none !important;
    }

    .lp32-staff-login-page .lp32-system-status {
        display: none !important;
    }


    /* ------------------------------------------------------
       COLUMNA DERECHA
       ------------------------------------------------------ */

    .lp32-staff-login-page .lp32-visual-center {
        width: 100% !important;
        min-width: 0 !important;

        margin: 0 !important;
        padding: 0 !important;
    }

    .lp32-staff-login-page .lp32-visual-kicker {
        display: inline-flex !important;

        margin: 0 0 7px !important;
        padding: 5px 8px !important;

        font-size: 7px !important;
        line-height: 1 !important;
        letter-spacing: .05em !important;

        white-space: nowrap !important;
    }

    .lp32-staff-login-page .lp32-visual-center h1 {
        width: 100% !important;
        max-width: none !important;

        margin: 0 !important;

        font-size: 19px !important;
        line-height: 1.04 !important;
        letter-spacing: -.035em !important;
    }

    .lp32-staff-login-page .lp32-visual-center h1 span {
        display: block !important;
    }


    /* ------------------------------------------------------
       EN MÓVIL ESTO NO ES NECESARIO
       ------------------------------------------------------ */

    .lp32-staff-login-page .lp32-visual-center > p,
    .lp32-staff-login-page .lp32-feature-list,
    .lp32-staff-login-page .lp32-visual-bottom {
        display: none !important;
    }


    /* ------------------------------------------------------
       FORMULARIO MÁS CERCA DEL BLOQUE AZUL
       ------------------------------------------------------ */

    .lp32-staff-login-page .lp32-login-panel {
        padding-top: 14px !important;
    }

    .lp32-staff-login-page .lp32-clinic-brand {
        margin-top: 0 !important;
        margin-bottom: 12px !important;
    }

    .lp32-staff-login-page .lp32-login-heading {
        margin-top: 0 !important;
        margin-bottom: 14px !important;
    }
}


















/* ==========================================================
   LP32 - ACCESO CLÍNICA
   COMPACTACIÓN UX MÓVIL FINAL
   SOLO <= 640px
   ========================================================== */

@media (max-width: 640px) {

    /* ------------------------------------------
       PANEL FORMULARIO
       ------------------------------------------ */

    .lp32-staff-login-page .lp32-login-panel {
        padding:
            12px
            18px
            18px !important;
    }

    .lp32-staff-login-page .lp32-login-panel-inner {
        width: 100% !important;
    }


    /* ------------------------------------------
       TARJETA CLÍNICA
       ------------------------------------------ */

    .lp32-staff-login-page .lp32-clinic-brand {
        min-height: 58px !important;

        padding: 8px 12px !important;
        margin-bottom: 10px !important;

        border-radius: 14px !important;
    }

    .lp32-staff-login-page .lp32-clinic-logo-fallback {
        flex: 0 0 42px !important;

        width: 42px !important;
        height: 42px !important;

        border-radius: 12px !important;
    }

    .lp32-staff-login-page .lp32-clinic-copy span {
        font-size: 8px !important;
    }

    .lp32-staff-login-page .lp32-clinic-copy strong {
        font-size: 12px !important;
    }


    /* ------------------------------------------
       BIENVENIDA MÁS COMPACTA
       ------------------------------------------ */

    .lp32-staff-login-page .lp32-login-heading {
        margin-bottom: 12px !important;
    }

    .lp32-staff-login-page .lp32-greeting-line {
        margin-bottom: 4px !important;
        font-size: 13px !important;
    }

    .lp32-staff-login-page .lp32-login-heading h2 {
        margin: 0 !important;

        font-size: 25px !important;
        line-height: 1.05 !important;
        letter-spacing: -.03em !important;
    }

    .lp32-staff-login-page .lp32-login-heading p {
        margin: 6px 0 0 !important;

        font-size: 10px !important;
        line-height: 1.35 !important;
    }


    /* ======================================================
       ¿CÓMO DESEAS INGRESAR?
       DOS COLUMNAS EN MÓVIL
       ====================================================== */

    .lp32-staff-login-page .lp32-access-selector {
        margin: 0 0 12px !important;
        padding: 0 !important;
    }

    .lp32-staff-login-page .lp32-access-selector legend {
        margin-bottom: 7px !important;

        font-size: 12px !important;
        line-height: 1.2 !important;
    }

    .lp32-staff-login-page .lp32-access-options {
        display: grid !important;

        grid-template-columns:
            repeat(2, minmax(0, 1fr)) !important;

        gap: 8px !important;
    }

    .lp32-staff-login-page .lp32-access-option {
        width: 100% !important;
        min-width: 0 !important;
    }

    .lp32-staff-login-page .lp32-access-option-card {
        position: relative !important;

        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        justify-content: center !important;

        width: 100% !important;
        min-height: 76px !important;

        padding: 10px 28px 10px 10px !important;

        border-radius: 14px !important;
    }

    .lp32-staff-login-page .lp32-access-option-icon {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;

        margin: 0 0 5px !important;

        border-radius: 9px !important;
    }

    .lp32-staff-login-page .lp32-access-option-copy {
        min-width: 0 !important;
    }

    .lp32-staff-login-page
    .lp32-access-option-copy strong {

        display: block !important;

        font-size: 11px !important;
        line-height: 1.15 !important;

        white-space: nowrap !important;
    }

    .lp32-staff-login-page
    .lp32-access-option-copy small {

        display: block !important;

        margin-top: 2px !important;

        font-size: 9px !important;
        line-height: 1.2 !important;
    }

    .lp32-staff-login-page .lp32-access-check {
        position: absolute !important;

        top: 9px !important;
        right: 9px !important;

        width: 21px !important;
        height: 21px !important;
    }


    /* ------------------------------------------
       CAMPOS
       MANTENEMOS BUEN TAMAÑO TÁCTIL
       ------------------------------------------ */

    .lp32-staff-login-page .lp32-form-group {
        margin-bottom: 10px !important;
    }

    .lp32-staff-login-page .lp32-form-group > label,
    .lp32-staff-login-page .lp32-label-row label {
        margin-bottom: 5px !important;

        font-size: 12px !important;
    }

    .lp32-staff-login-page .lp32-input {
        height: 45px !important;

        font-size: 12px !important;
    }


    /* ------------------------------------------
       RECORDAR + OLVIDASTE
       MISMA FILA
       ------------------------------------------ */

    .lp32-staff-login-page .lp32-form-options {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;

        gap: 8px !important;

        margin: 2px 0 12px !important;
    }

    .lp32-staff-login-page .lp32-remember-control,
    .lp32-staff-login-page .lp32-forgot-link {
        font-size: 11px !important;
    }


    /* ------------------------------------------
       BOTÓN
       ------------------------------------------ */

    .lp32-staff-login-page .lp32-login-button {
        min-height: 52px !important;

        margin: 0 !important;

        border-radius: 14px !important;
    }

    .lp32-staff-login-page .lp32-button-text {
        font-size: 14px !important;
    }


    /* ------------------------------------------
       AYUDA Y FOOTER
       ------------------------------------------ */

    .lp32-staff-login-page .lp32-login-help {
        margin: 10px 0 0 !important;

        font-size: 10px !important;
        line-height: 1.25 !important;
    }

    /*
     * En móvil el footer aporta poco y obliga a scroll.
     * PC continúa mostrándolo.
     */
    .lp32-staff-login-page .lp32-login-footer {
        display: none !important;
    }
}










.lp32-clinic-tooth {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;

    font-size: 23px;
    line-height: 1;
}

@media (max-width: 640px) {
    .lp32-clinic-tooth {
        font-size: 20px;
    }
}