/* Auto-generated from style.css — do not edit; run scripts/split-css.js */
/* ==========================================================================
   DASH AUTH — pantalla de alta de usuarios (asistente 3 fases)
   ========================================================================== */

   .dash-auth-shell {
    min-height: 100vh;
    width: 100%;
    background: linear-gradient(160deg, #fff7ef 0%, #f5eee5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
    box-sizing: border-box;
    font-family: 'proximaNovaRegular', 'Helvetica Neue', Arial, sans-serif;
}

.dash-auth-card {
    width: 100%;
    max-width: 480px;
    background-color: var(--dash-bg-card, #ffffff);
    border-radius: var(--dash-radius-card, 14px);
    box-shadow: 0 18px 48px rgba(78, 52, 46, 0.12);
    border: 1px solid var(--dash-border-card, rgba(0, 0, 0, 0.04));
    padding: 28px;
    box-sizing: border-box;
}

.dash-auth-header {
    text-align: center;
    margin-bottom: 22px;
}

.dash-auth-logo {
    width: 150px;
    max-width: 60%;
    height: auto;
    display: inline-block;
}

.dash-auth-title {
    font-size: 22px;
    color: var(--dash-text-strong, #4e342e);
    margin: 16px 0 4px 0;
    font-weight: 600;
}

.dash-auth-subtitle {
    font-size: 13px;
    color: var(--dash-text-medium, #7d6c63);
    margin: 0;
    line-height: 1.45;
}

.dash-auth-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 18px 0 22px 0;
}

.dash-auth-step-pill {
    flex: 0 0 auto;
    width: 26px;
    height: 4px;
    border-radius: 999px;
    background-color: var(--dash-border-soft, #efe6dd);
    transition: background-color .2s ease, width .2s ease;
}

.dash-auth-step-pill.is-active {
    background-color: var(--dash-accent, #c9a45c);
    width: 44px;
}

.dash-auth-step-pill.is-done {
    background-color: var(--dash-text-strong, #4e342e);
}

.dash-auth-step {
    display: none;
}

.dash-auth-step.is-current {
    display: block;
    animation: dashAuthFadeIn .25s ease both;
}

@keyframes dashAuthFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.dash-auth-field {
    margin-bottom: 14px;
    text-align: left;
}

.dash-auth-field-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--dash-text-strong, #4e342e);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 6px;
}

.dash-auth-field-row {
    display: flex;
    gap: 10px;
}

.dash-auth-field-row > .dash-auth-field {
    flex: 1 1 0;
}

.dash-auth-input,
.dash-auth-select {
    width: 100%;
    box-sizing: border-box;
    padding: 11px 14px;
    border: 1px solid var(--dash-border-soft, #efe6dd);
    border-radius: 10px;
    font-size: 14px;
    color: var(--dash-text-strong, #4e342e);
    background-color: #ffffff;
    font-family: inherit;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.dash-auth-input:focus,
.dash-auth-select:focus {
    outline: none;
    border-color: var(--dash-accent, #c9a45c);
    box-shadow: 0 0 0 3px rgba(201, 164, 92, 0.18);
}

.dash-auth-input.is-invalid,
.dash-auth-select.is-invalid {
    border-color: #d6453a;
    box-shadow: 0 0 0 3px rgba(214, 69, 58, 0.12);
}

.dash-auth-hint {
    font-size: 11px;
    color: var(--dash-text-muted, #8d7d77);
    margin-top: 6px;
    line-height: 1.4;
}

.dash-auth-helper {
    background-color: #fdf7ef;
    border: 1px solid #f1e1c8;
    border-radius: 10px;
    padding: 12px 14px;
    color: var(--dash-text-medium, #7d6c63);
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 16px;
}

.dash-auth-helper strong {
    color: var(--dash-text-strong, #4e342e);
    word-break: break-all;
}

.dash-phone-group {
    display: flex;
    gap: 8px;
}

.dash-phone-group .dash-auth-select {
    flex: 0 0 120px;
    width: 120px;
    padding-right: 8px;
}

.dash-phone-group .dash-auth-input {
    flex: 1 1 auto;
}

.dash-auth-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 12px;
    color: var(--dash-text-medium, #7d6c63);
    line-height: 1.5;
    margin: 6px 0 18px 0;
}

.dash-auth-checkbox input[type="checkbox"] {
    margin-top: 2px;
    transform: scale(1.1);
    accent-color: var(--dash-accent, #c9a45c);
}

.dash-auth-checkbox a {
    color: var(--dash-text-strong, #4e342e);
    text-decoration: underline;
}

.dash-otp {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 16px;
}

.dash-otp-input {
    flex: 1 1 0;
    height: 56px;
    border: 1px solid var(--dash-border-soft, #efe6dd);
    border-radius: 10px;
    background-color: #ffffff;
    text-align: center;
    font-size: 22px;
    font-weight: 600;
    color: var(--dash-text-strong, #4e342e);
    letter-spacing: 1px;
    font-family: inherit;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.dash-otp-input:focus {
    outline: none;
    border-color: var(--dash-accent, #c9a45c);
    box-shadow: 0 0 0 3px rgba(201, 164, 92, 0.18);
}

.dash-otp.is-invalid .dash-otp-input {
    border-color: #d6453a;
}

.dash-auth-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 6px;
}

.dash-auth-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
    padding: 13px 18px;
    border: 0;
    border-radius: 10px;
    background-color: #EA7504;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.2px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color .15s ease, transform .05s ease, opacity .15s ease;
    font-family: inherit;
}

.dash-auth-button:hover { background-color: #D56802; }
.dash-auth-button:active { transform: translateY(1px); }
.dash-auth-button:disabled,
.dash-auth-button[aria-disabled="true"] {
    background-color: #b9a89f;
    cursor: not-allowed;
    opacity: 0.85;
}

.dash-auth-button--link {
    background: transparent;
    color: var(--dash-text-strong, #4e342e);
    text-decoration: underline;
    padding: 6px 4px;
    width: auto;
    align-self: center;
    font-weight: 500;
    font-size: 13px;
}

.dash-auth-button--link:hover { background: transparent; color: #2d1a14; }
.dash-auth-button--link:disabled { color: var(--dash-text-muted, #8d7d77); text-decoration: none; cursor: not-allowed; }

.dash-auth-feedback {
    min-height: 18px;
    margin: 4px 0 6px 0;
    font-size: 12.5px;
    line-height: 1.4;
    color: #d6453a;
    text-align: center;
}

.dash-auth-feedback.is-success { color: #2f7a4f; }

.dash-auth-footer {
    text-align: center;
    margin-top: 18px;
    font-size: 12px;
    color: var(--dash-text-muted, #8d7d77);
}

.dash-auth-footer a {
    color: var(--dash-text-strong, #4e342e);
    text-decoration: underline;
}

.dash-auth-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-top-color: #ffffff;
    animation: dashAuthSpin .8s linear infinite;
}

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

.dash-auth-success {
    text-align: center;
    padding: 12px 0 4px 0;
}

.dash-auth-success-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: #e7f4ec;
    color: #2f7a4f;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    line-height: 1;
    margin-bottom: 14px;
}

@media (max-width: 480px) {
    .dash-auth-card { padding: 22px 18px; border-radius: 12px; }
    .dash-auth-title { font-size: 19px; }
    .dash-auth-field-row { flex-direction: column; gap: 0; }
    .dash-phone-group .dash-auth-select { flex-basis: 110px; width: 110px; }
    .dash-otp-input { height: 50px; font-size: 19px; }
}

/* ==========================================================================
   LOGIN / RECUPERAR — tarjeta minimalista centrada sobre fondo fotográfico
   ========================================================================== */

.dash-auth-shell--photo {
    background-color: #f5eee5;
    background-image: url('../../img/background.webp');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    align-items: center;

    /* Permite animar zonas del propio fondo sin añadir HTML ni clases nuevas. */
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

/*
 * Las dos capas reutilizan background.webp:
 * ::before = agua
 * ::after  = espiral/cielo
 */
.dash-auth-shell--photo::before,
.dash-auth-shell--photo::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;

    background-image: url('../../img/background.webp');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;

    will-change: transform;
}

/* Agua: movimiento mínimo, lento y continuo. */
.dash-auth-shell--photo::before {
    -webkit-mask-image: linear-gradient(
        to bottom,
        transparent 0%,
        transparent 54%,
        rgba(0, 0, 0, 0.20) 58%,
        #000 66%,
        #000 100%
    );
    mask-image: linear-gradient(
        to bottom,
        transparent 0%,
        transparent 54%,
        rgba(0, 0, 0, 0.20) 58%,
        #000 66%,
        #000 100%
    );

    transform-origin: 70% 72%;
    animation: dashAuthWater 10s ease-in-out infinite alternate;
}

/* Espiral: giro y respiración muy sutil alrededor de su centro. */
.dash-auth-shell--photo::after {
    -webkit-mask-image: radial-gradient(
        circle at 73% 19%,
        #000 0%,
        rgba(0, 0, 0, 0.92) 18%,
        rgba(0, 0, 0, 0.45) 30%,
        transparent 47%
    );
    mask-image: radial-gradient(
        circle at 73% 19%,
        #000 0%,
        rgba(0, 0, 0, 0.92) 18%,
        rgba(0, 0, 0, 0.45) 30%,
        transparent 47%
    );

    transform-origin: 73% 19%;
    animation: dashAuthCosmos 20s ease-in-out infinite alternate;
}

@keyframes dashAuthWater {
    0% {
        transform: translate3d(-2px, 0, 0) scale(1.002);
    }
    50% {
        transform: translate3d(3px, 1px, 0) scale(1.005);
    }
    100% {
        transform: translate3d(-1px, -1px, 0) scale(1.003);
    }
}

@keyframes dashAuthCosmos {
    0% {
        transform: rotate(-0.25deg) scale(1.001);
    }
    50% {
        transform: rotate(0.18deg) scale(1.006);
    }
    100% {
        transform: rotate(0.38deg) scale(1.002);
    }
}

.dash-auth-shell--photo .dash-auth-card {
    max-width: 460px;
    padding: 44px 40px 36px;
    -webkit-user-select: text;
    user-select: text;

    /* El formulario queda por encima de las dos capas animadas. */
    position: relative;
    z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
    .dash-auth-shell--photo::before,
    .dash-auth-shell--photo::after {
        animation: none;
        transform: none;
    }
}

.dash-auth-shell--photo .dash-auth-header {
    margin-bottom: 30px;
}

.dash-auth-shell--photo .dash-auth-logo {
    width: 190px;
    max-width: 72%;
}

.dash-auth-shell--photo .dash-auth-title {
    font-size: 25px;
    margin-top: 18px;
}

.dash-auth-shell--photo .dash-auth-subtitle {
    font-size: 14px;
    margin-top: 6px;
}

.dash-auth-shell--photo .dash-auth-checkbox input[type="checkbox"] {
    accent-color: #fff;
}

.dash-auth-shell--photo .dash-auth-input {
    padding: 13px 15px;
    font-size: 15px;
}

.dash-auth-shell--photo .dash-auth-button {
    padding: 15px 18px;
    font-size: 15px;
}

.dash-auth-input.bWrong,
.dash-auth-select.bWrong {
    background-color: #ffffff !important;
    border-color: #d6453a !important;
    box-shadow: 0 0 0 3px rgba(214, 69, 58, 0.12);
}

.dash-auth-captcha-image {
    margin: 0 auto 12px;
    max-width: 100%;
    overflow: hidden;
    border-radius: 10px;
    border: 1px solid var(--dash-border-soft, #efe6dd);
    background: #f7f4f0;
    line-height: 0;
}

.dash-auth-captcha-image img {
    display: block;
    width: 100%;
    height: auto;
}

.dash-auth-legal {
    margin: 18px 0 0 0;
    font-size: 12px;
    line-height: 1.5;
    color: var(--dash-text-muted, #8d7d77);
    text-align: center;
}

.dash-auth-legal a {
    color: var(--dash-text-strong, #4e342e);
    text-decoration: underline;
}

#barraaceptacion.dash-auth-cookies {
    display: none;
    left: 16px;
    right: 16px;
    bottom: 16px;
    background: transparent;
    z-index: var(--z-index-modal, 7777);
}

.dash-auth-cookies-inner {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 18px;
    background: #ffffff;
    border: 1px solid var(--dash-border-soft, #efe6dd);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(78, 52, 46, 0.14);
    color: var(--dash-text-medium, #7d6c63);
    font-size: 13px;
    line-height: 1.4;
    text-align: left;
}

.dash-auth-cookies-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.dash-auth-cookies-actions a {
    color: var(--dash-text-strong, #4e342e);
    text-decoration: underline;
    white-space: nowrap;
}

.dash-auth-cookies-ok {
    width: auto;
    padding: 8px 16px;
    font-size: 13px;
}

@media (max-width: 640px) {
    .dash-auth-shell--photo .dash-auth-card { padding: 32px 24px 28px; }
    .dash-auth-cookies-inner {
        flex-direction: column;
        text-align: center;
    }
}

/* ==========================================================================
   DEBUG TEMPORAL DE ANIMACIÓN
   Eliminar este bloque cuando se confirme que las pseudo-capas funcionan.
   ========================================================================== */

.dash-auth-shell--photo::before {
    animation: dashAuthWaterDebug 2s ease-in-out infinite alternate !important;
    filter: saturate(1.8) hue-rotate(18deg) !important;
    opacity: 0.78 !important;
}

.dash-auth-shell--photo::after {
    animation: dashAuthCosmosDebug 3s ease-in-out infinite alternate !important;
    filter: saturate(1.5) contrast(1.08) !important;
    opacity: 0.82 !important;
}

@keyframes dashAuthWaterDebug {
    from {
        transform: translate3d(-18px, 0, 0) scale(1.01);
    }
    to {
        transform: translate3d(18px, 4px, 0) scale(1.025);
    }
}

@keyframes dashAuthCosmosDebug {
    from {
        transform: rotate(-1.8deg) scale(1.005);
    }
    to {
        transform: rotate(1.8deg) scale(1.025);
    }
}