/* =========================================================
   AUTENTICACIÓN — REGISTRO / LOGIN
   ========================================================= */

.um-auth-page {
    --auth-ink: #071536;
    --auth-text: #53617d;
    --auth-blue: #3155ff;
    --auth-cyan: #00d5ff;
    --auth-violet: #743cff;
    --auth-magenta: #ed23bb;
    --auth-border: #dfe5f2;
    --auth-bg: #f5f7ff;

    position: relative;
    min-height: calc(100vh - 80px);
    overflow: hidden;
    padding: clamp(42px, 6vw, 86px) 24px;

    background:
        radial-gradient(
            circle at 8% 20%,
            rgba(0, 213, 255, 0.09),
            transparent 28%
        ),
        radial-gradient(
            circle at 94% 15%,
            rgba(237, 35, 187, 0.08),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #f8fbff 0%,
            #f7f5ff 54%,
            #fff8fd 100%
        );

    font-family:
        "Helvetica Neue",
        Helvetica,
        Arial,
        sans-serif;
}


/* =========================================================
   DECORACIÓN DE FONDO
   ========================================================= */

.um-auth-decoration {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(4px);
}

.um-auth-decoration--blue {
    top: -180px;
    left: -140px;
    width: 430px;
    height: 430px;
    background:
        radial-gradient(
            circle,
            rgba(0, 213, 255, 0.13),
            rgba(49, 85, 255, 0.03) 60%,
            transparent 72%
        );
}

.um-auth-decoration--pink {
    right: -170px;
    bottom: -210px;
    width: 520px;
    height: 520px;
    background:
        radial-gradient(
            circle,
            rgba(237, 35, 187, 0.11),
            rgba(116, 60, 255, 0.04) 60%,
            transparent 72%
        );
}


/* =========================================================
   CONTENEDOR PRINCIPAL
   ========================================================= */

.um-auth-card {
    position: relative;
    z-index: 1;

    display: grid;
    grid-template-columns:
        minmax(320px, 0.9fr)
        minmax(430px, 1.1fr);

    width: min(1180px, 100%);
    min-height: 680px;
    margin: 0 auto;

    overflow: hidden;

    border: 1px solid rgba(15, 35, 80, 0.08);
    border-radius: 34px;

    background: #fff;

    box-shadow:
        0 30px 80px rgba(21, 37, 82, 0.12);
}


/* =========================================================
   PANEL IZQUIERDO
   ========================================================= */

.um-auth-card__intro {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;

    padding:
        clamp(42px, 6vw, 74px)
        clamp(34px, 5vw, 64px);

    overflow: hidden;

    color: #fff;

    background:
        radial-gradient(
            circle at 86% 15%,
            rgba(237, 35, 187, 0.48),
            transparent 27%
        ),
        radial-gradient(
            circle at 10% 88%,
            rgba(0, 213, 255, 0.28),
            transparent 32%
        ),
        linear-gradient(
            145deg,
            #173cff 0%,
            #633cff 48%,
            #c327e5 100%
        );
}

.um-auth-card__intro::before {
    content: "";
    position: absolute;

    width: 440px;
    height: 440px;

    right: -240px;
    top: -210px;

    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
}

.um-auth-card__intro::after {
    content: "";
    position: absolute;

    width: 350px;
    height: 350px;

    left: -190px;
    bottom: -210px;

    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
}

.um-auth-eyebrow {
    position: relative;
    z-index: 1;
    margin-bottom: 22px;
}

.um-auth-card__intro h1 {
    position: relative;
    z-index: 1;

    max-width: 520px;
    margin: 0;

    color: #fff;

    font-size: clamp(42px, 5vw, 68px);
    font-weight: 700;
    line-height: 0.98;
    letter-spacing: -0.05em;
}

.um-auth-card__intro > p {
    position: relative;
    z-index: 1;

    max-width: 470px;
    margin: 26px 0 0;

    color: rgba(255, 255, 255, 0.82);

    font-size: 18px;
    line-height: 1.6;
}

.um-auth-benefits {
    position: relative;
    z-index: 1;

    display: grid;
    gap: 13px;

    margin-top: 44px;
}

.um-auth-benefits span {
    display: flex;
    align-items: center;
    gap: 10px;

    color: rgba(255, 255, 255, 0.9);

    font-size: 14px;
    font-weight: 600;
}


/* =========================================================
   PANEL DERECHO / FORMULARIO
   ========================================================= */

.um-auth-card__form {
    display: flex;
    flex-direction: column;
    justify-content: center;

    padding:
        clamp(42px, 6vw, 74px)
        clamp(38px, 6vw, 78px);

    background:
        linear-gradient(
            145deg,
            #ffffff 0%,
            #fbfcff 100%
        );
}

.um-auth-form-heading {
    display: flex;
    align-items: center;
    gap: 18px;

    margin-bottom: 36px;
}

.um-auth-form-number {
    flex: 0 0 52px;

    display: grid;
    place-items: center;

    width: 52px;
    height: 52px;

    border-radius: 16px;

    color: var(--auth-blue);

    background:
        linear-gradient(
            135deg,
            rgba(0, 213, 255, 0.11),
            rgba(116, 60, 255, 0.09)
        );

    border: 1px solid rgba(49, 85, 255, 0.13);

    font-size: 13px;
    font-weight: 800;
}

.um-auth-form-number__check {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;

    color: var(--auth-blue);

    font-size: 22px;
    font-weight: 700;
    line-height: 1;
}

.um-auth-small-label {
    display: block;

    margin-bottom: 5px;

    color: var(--auth-blue);

    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.13em;
}

.um-auth-form-heading h2 {
    margin: 0;

    color: var(--auth-ink);

    font-size: clamp(32px, 3.5vw, 46px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.04em;
}

.um-auth-form-description {
    margin: 0 0 24px;

    color: var(--auth-text);

    font-size: 15px;
    line-height: 1.6;
}


/* =========================================================
   ¿OLVIDASTE TU CONTRASEÑA?
   ========================================================= */

.um-auth-forgot-link {
    margin: 8px 0 0;

    text-align: right;
}

.um-auth-forgot-link a {
    color: var(--auth-blue);

    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.um-auth-forgot-link a:hover {
    text-decoration: underline;
}


/* =========================================================
   MENSAJES
   ========================================================= */

.um-auth-message {
    margin-bottom: 24px;
    padding: 14px 16px;

    border-radius: 14px;

    font-size: 14px;
    line-height: 1.45;
}

.um-auth-message--error {
    color: #8c1835;

    border: 1px solid rgba(180, 40, 76, 0.15);

    background: #fff3f6;
}

.um-auth-message--success {
    color: #163a9c;

    border: 1px solid rgba(49, 85, 255, 0.18);

    background: #eef2ff;
}


/* =========================================================
   FORM
   ========================================================= */

.um-auth-form {
    display: grid;
    gap: 24px;
}

.um-auth-field {
    display: grid;
    gap: 9px;
}

.um-auth-field label {
    color: var(--auth-ink);

    font-size: 14px;
    font-weight: 700;
}

.um-auth-field input {
    width: 100%;
    min-height: 56px;

    padding: 0 17px;

    border: 1px solid var(--auth-border);
    border-radius: 16px;

    outline: none;

    color: var(--auth-ink);
    background: #fff;

    font-family: inherit;
    font-size: 15px;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.um-auth-field input::placeholder {
    color: #8b96ac;
}

.um-auth-field input:hover {
    border-color: #c7d1e5;
}

.um-auth-field input:focus {
    border-color: var(--auth-blue);

    box-shadow:
        0 0 0 4px rgba(49, 85, 255, 0.09);
}


/* =========================================================
   CONTRASEÑA
   ========================================================= */

.um-auth-password {
    position: relative;
}

.um-auth-password input {
    padding-right: 84px;
}

.um-auth-password-toggle {
    position: absolute;

    top: 50%;
    right: 10px;

    transform: translateY(-50%);

    min-width: 54px;
    min-height: 36px;

    padding: 0 10px;

    border: 0;
    border-radius: 10px;

    color: var(--auth-blue);
    background: #f3f6ff;

    font-family: inherit;
    font-size: 12px;
    font-weight: 800;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.um-auth-password-toggle:hover {
    background: #eaf0ff;
}


/* =========================================================
   BOTÓN PRINCIPAL
   ========================================================= */

.um-auth-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    width: 100%;
    min-height: 58px;

    margin-top: 5px;
    padding: 0 24px;

    border: 0;
    border-radius: 16px;

    color: #fff;
    text-decoration: none;

    background:
        linear-gradient(
            100deg,
            var(--auth-blue),
            var(--auth-violet) 58%,
            var(--auth-magenta)
        );

    box-shadow:
        0 14px 28px rgba(83, 59, 230, 0.22);

    font-family: inherit;
    font-size: 15px;
    font-weight: 800;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

/*
 * El estado de éxito de "Recuperar contraseña" usa .um-auth-submit
 * sobre un <a>. Se anula el subrayado de enlace en todos sus
 * estados sin afectar la regla global de <a> del tema.
 */
.um-auth-submit:link,
.um-auth-submit:visited,
.um-auth-submit:hover,
.um-auth-submit:focus,
.um-auth-submit:active {
    text-decoration: none;
}

.um-auth-submit:hover {
    transform: translateY(-2px);

    box-shadow:
        0 18px 36px rgba(83, 59, 230, 0.3);
}

/*
 * Refuerzo de especificidad: evita que estilos globales externos
 * (ej. reglas "a" de Elementor/Eduma) sobrescriban este color
 * cuando .um-auth-submit se usa sobre un <a> (estado de éxito de
 * "Recuperar contraseña"). El selector de tipo "a" no afecta a
 * las instancias <button> de Login/Registro. No cambia el
 * diseño: se mantiene blanco en todos los estados.
 */
.um-auth-card__form a.um-auth-submit,
.um-auth-card__form a.um-auth-submit:link,
.um-auth-card__form a.um-auth-submit:visited,
.um-auth-card__form a.um-auth-submit:hover,
.um-auth-card__form a.um-auth-submit:focus,
.um-auth-card__form a.um-auth-submit:active {
    color: #fff;
}

.um-auth-submit span {
    font-size: 19px;
}


/* =========================================================
   LINK LOGIN
   ========================================================= */

.um-auth-login-link {
    margin: 30px 0 0;

    color: var(--auth-text);

    font-size: 14px;
    text-align: center;
}

.um-auth-login-link a {
    margin-left: 4px;

    color: var(--auth-blue);

    font-weight: 800;
    text-decoration: none;
}

.um-auth-login-link a:hover {
    text-decoration: underline;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 960px) {
    .um-auth-card {
        grid-template-columns: 1fr;
        max-width: 680px;
    }

    .um-auth-card__intro {
        min-height: 350px;
    }

    .um-auth-card__intro h1 {
        max-width: 560px;
    }

    .um-auth-benefits {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));

        gap: 10px;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 640px) {
    .um-auth-page {
        padding:
            24px
            14px;
    }

    .um-auth-card {
        border-radius: 24px;
    }

    .um-auth-card__intro {
        min-height: auto;
        padding: 38px 26px;
    }

    .um-auth-card__intro h1 {
        font-size: 39px;
    }

    .um-auth-card__intro > p {
        margin-top: 18px;
        font-size: 16px;
    }

    .um-auth-benefits {
        grid-template-columns: 1fr;
        margin-top: 28px;
    }

    .um-auth-card__form {
        padding: 36px 24px 40px;
    }

    .um-auth-form-heading {
        align-items: flex-start;
        margin-bottom: 28px;
    }

    .um-auth-form-number {
        width: 46px;
        height: 46px;
        flex-basis: 46px;
    }

    .um-auth-form-heading h2 {
        font-size: 32px;
    }

    .um-auth-field input {
        min-height: 54px;
    }
}