.registro-page {
    min-height: calc(100vh - 140px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 70px 24px 90px;
    position: relative;
}

.registro-page::before {
    content: "";
    position: absolute;
    width: 520px;
    height: 520px;
    top: 8%;
    left: 50%;
    transform: translateX(-50%);
    background:
        radial-gradient(
            circle,
            rgba(226, 55, 177, 0.18) 0%,
            rgba(117, 92, 224, 0.12) 35%,
            rgba(55, 205, 205, 0.08) 58%,
            transparent 72%
        );
    filter: blur(25px);
    pointer-events: none;
}

.registro-shell {
    width: min(100%, 560px);
    position: relative;
    z-index: 1;
}

.registro-card {
    position: relative;
    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.16),
            rgba(255, 255, 255, 0.055)
        );

    border: 1px solid transparent;
    border-radius: 28px;

    background-clip: padding-box;

    box-shadow:
        0 28px 70px rgba(54, 30, 82, 0.22),
        0 0 35px rgba(180, 90, 255, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.32);

    backdrop-filter:
        blur(18px)
        saturate(145%);

    -webkit-backdrop-filter:
        blur(18px)
        saturate(145%);

    isolation: isolate;

    transition:
        transform 320ms ease,
        box-shadow 320ms ease;
}

.registro-card {
    position: relative;
    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.075),
            rgba(255, 255, 255, 0.018)
        );

    border: 1px solid transparent;
    border-radius: 28px;

    background-clip: padding-box;

    box-shadow:
        0 30px 80px rgba(54, 30, 82, 0.20),
        0 0 42px rgba(180, 90, 255, 0.10),
        0 0 70px rgba(93, 232, 237, 0.035),
        inset 0 1px 0 rgba(255, 255, 255, 0.28);

    backdrop-filter:
        blur(28px)
        saturate(165%);

    -webkit-backdrop-filter:
        blur(28px)
        saturate(165%);

    isolation: isolate;

    transition:
        transform 360ms ease,
        box-shadow 360ms ease;
}

.registro-card::before {
    content: "";

    position: absolute;
    inset: 0;

    padding: 1.2px;
    border-radius: inherit;

    background:
        linear-gradient(
            115deg,
            rgba(0, 229, 255, 0.95),
            rgba(150, 92, 255, 0.95) 48%,
            rgba(255, 54, 190, 0.95)
        );

    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);

    -webkit-mask-composite: xor;
    mask-composite: exclude;

    pointer-events: none;
    z-index: -1;

    opacity: 0.95;

    filter:
        drop-shadow(0 0 7px rgba(0, 229, 255, 0.24))
        drop-shadow(0 0 14px rgba(150, 92, 255, 0.18))
        drop-shadow(0 0 18px rgba(255, 54, 190, 0.18));

    animation:
        registro-border-flow 7s ease-in-out infinite;
}

.registro-card::after {
    content: "";

    position: absolute;

    top: -35%;
    left: -30%;

    width: 70%;
    height: 170%;

    background:
        linear-gradient(
            105deg,
            transparent 35%,
            rgba(255, 255, 255, 0.20) 48%,
            transparent 61%
        );

    transform:
        rotate(12deg)
        translateX(-80%);

    pointer-events: none;

    opacity: 0.58;

    animation:
        registro-crystal-sweep 8s ease-in-out infinite;
}

@keyframes registro-border-flow {

    0%,
    100% {
        filter:
            drop-shadow(0 0 7px rgba(0, 229, 255, 0.20))
            drop-shadow(0 0 12px rgba(150, 92, 255, 0.16))
            drop-shadow(0 0 16px rgba(255, 54, 190, 0.14));
    }

    50% {
        filter:
            drop-shadow(0 0 10px rgba(0, 229, 255, 0.32))
            drop-shadow(0 0 18px rgba(150, 92, 255, 0.25))
            drop-shadow(0 0 24px rgba(255, 54, 190, 0.24));
    }
}

@keyframes registro-crystal-sweep {

    0%,
    55% {
        transform:
            rotate(12deg)
            translateX(-80%);
    }

    75%,
    100% {
        transform:
            rotate(12deg)
            translateX(190%);
    }
}

.registro-card {
    position: relative;
    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.025),
            rgba(255, 255, 255, 0.008)
        );

    border: 1px solid transparent;
    border-radius: 28px;

    box-shadow:
        0 28px 80px rgba(38, 18, 64, 0.18),
        0 0 28px rgba(0, 229, 255, 0.10),
        0 0 38px rgba(150, 92, 255, 0.12),
        0 0 48px rgba(255, 54, 190, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);

    backdrop-filter:
        blur(10px)
        saturate(175%);

    -webkit-backdrop-filter:
        blur(10px)
        saturate(175%);

    isolation: isolate;

    transition:
        transform 350ms ease,
        box-shadow 350ms ease;
}

/* BORDE NEXXA LUMINOSO */
.registro-card::before {
    content: "";

    position: absolute;
    inset: 0;

    border-radius: inherit;

    background:
        linear-gradient(
            120deg,
            #00e5ff 0%,
            #5de8ed 20%,
            #965cff 50%,
            #ff36be 78%,
            #00e5ff 100%
        );

    padding: 1.5px;

    /* Mantienes las antiguas para navegadores viejos */
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;

  /* AGREGAS ESTAS LÍNEAS ESTÁNDAR PARA ELIMINAR EL ERROR */
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;

    pointer-events: none;

    z-index: 2;

    opacity: 0.95;

    filter:
        drop-shadow(0 0 5px rgba(0, 229, 255, 0.55))
        drop-shadow(0 0 10px rgba(150, 92, 255, 0.45))
        drop-shadow(0 0 15px rgba(255, 54, 190, 0.42));

    background-size: 250% 250%;

    animation:
        registro-neon-flow 5s ease-in-out infinite;
}

/* REFLEJO DE CRISTAL */
.registro-card::after {
    content: "";

    position: absolute;

    top: -50%;
    left: -35%;

    width: 55%;
    height: 200%;

    background:
        linear-gradient(
            105deg,
            transparent 25%,
            rgba(255, 255, 255, 0.04) 42%,
            rgba(255, 255, 255, 0.30) 50%,
            rgba(255, 255, 255, 0.04) 58%,
            transparent 75%
        );

    transform: rotate(14deg) translateX(-120%);

    pointer-events: none;

    z-index: 1;

    opacity: 0.75;

    animation:
        registro-glass-sweep 6s ease-in-out infinite;
}

@keyframes registro-neon-flow {

    0%,
    100% {
        background-position: 0% 50%;

        filter:
            drop-shadow(0 0 5px rgba(0, 229, 255, 0.48))
            drop-shadow(0 0 10px rgba(150, 92, 255, 0.40))
            drop-shadow(0 0 15px rgba(255, 54, 190, 0.38));
    }

    50% {
        background-position: 100% 50%;

        filter:
            drop-shadow(0 0 8px rgba(0, 229, 255, 0.72))
            drop-shadow(0 0 15px rgba(150, 92, 255, 0.62))
            drop-shadow(0 0 23px rgba(255, 54, 190, 0.58));
    }
}

@keyframes registro-glass-sweep {

    0%,
    52% {
        transform: rotate(14deg) translateX(-120%);
    }

    72%,
    100% {
        transform: rotate(14deg) translateX(310%);
    }
}

.registro-card:hover {

    transform: translateY(-3px);

    box-shadow:
        0 34px 90px rgba(38, 18, 64, 0.20),
        0 0 34px rgba(0, 229, 255, 0.18),
        0 0 48px rgba(150, 92, 255, 0.22),
        0 0 62px rgba(255, 54, 190, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.30);
}
/* =========================================================
   CONTENIDO INTERNO — REGISTRO / LOGIN
   Solo tipografía, espaciado y contraste.
   La ventana glass y sus efectos permanecen intactos.
   ========================================================= */

.registro-card {
    padding: clamp(34px, 5vw, 46px);
}

.registro-header {
    text-align: center;
    margin-bottom: 30px;
}

.registro-header h1 {
    margin: 0 0 14px;

    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(2.15rem, 5vw, 3rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.035em;

    background:
        linear-gradient(
            105deg,
            #ff36be 0%,
            #965cff 32%,
            #b878ff 50%,
            #5de8ed 72%,
            #00e5ff 100%
        );

    background-size: 250% 250%;
    background-position: 0% 50%;

    -webkit-background-clip: text;
    background-clip: text;

    -webkit-text-fill-color: transparent;
    color: transparent;

    filter:
        drop-shadow(0 0 8px rgba(255, 54, 190, 0.25))
        drop-shadow(0 0 14px rgba(150, 92, 255, 0.22))
        drop-shadow(0 0 18px rgba(0, 229, 255, 0.16));

    animation: registro-title-flow 6s ease-in-out infinite;
}

@keyframes registro-title-flow {

    0%,
    100% {
        background-position: 0% 50%;

        filter:
            drop-shadow(0 0 7px rgba(255, 54, 190, 0.24))
            drop-shadow(0 0 13px rgba(150, 92, 255, 0.20))
            drop-shadow(0 0 17px rgba(0, 229, 255, 0.14));
    }

    50% {
        background-position: 100% 50%;

        filter:
            drop-shadow(0 0 10px rgba(255, 54, 190, 0.38))
            drop-shadow(0 0 18px rgba(150, 92, 255, 0.32))
            drop-shadow(0 0 23px rgba(0, 229, 255, 0.28));
    }
}

.registro-header p {
    margin: 0 auto;
    max-width: 430px;

    color: rgba(255, 255, 255, 0.92);

    font-size: 0.98rem;
    line-height: 1.65;

    text-shadow:
        0 0 8px rgba(255, 255, 255, 0.08);
}

.registro-form {
    display: grid;
    gap: 20px;
}

.registro-field {
    display: grid;
    gap: 9px;
}

.registro-field label {
    color: rgba(255, 255, 255, 0.96);

    font-weight: 700;
    font-size: 0.9rem;

    text-shadow:
        0 0 8px rgba(255, 255, 255, 0.10);
}

.registro-field input {
    width: 100%;
    min-height: 52px;

    padding: 0 16px;

    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 15px;

    outline: none;

    background: rgba(255, 255, 255, 0.42);

    color: #302743;

    font: inherit;

    transition:
        border-color 220ms ease,
        box-shadow 220ms ease,
        background 220ms ease,
        transform 220ms ease;
}

.registro-field input::placeholder {
    color: rgba(48, 39, 67, 0.58);
}

.registro-field input:focus {
    border-color: rgba(0, 229, 255, 0.88);

    background: rgba(255, 255, 255, 0.62);

    box-shadow:
        0 0 0 3px rgba(0, 229, 255, 0.10),
        0 0 12px rgba(0, 229, 255, 0.32),
        0 0 24px rgba(150, 92, 255, 0.24),
        0 0 34px rgba(255, 54, 190, 0.16);

    transform: translateY(-1px);
}

.registro-submit {
    width: 100%;
    min-height: 56px;

    margin-top: 8px;

    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 17px;

    background:
        linear-gradient(
            110deg,
            #7f5bd6,
            #d83eb5,
            #5d83df
        );

    color: #fff;

    font-family: "Space Grotesk", sans-serif;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.01em;

    cursor: pointer;

    box-shadow:
        0 14px 32px rgba(112, 73, 181, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);

    transition:
        transform 220ms ease,
        box-shadow 220ms ease;
}

.registro-submit:hover {
    transform: translateY(-2px);

    box-shadow:
        0 18px 38px rgba(112, 73, 181, 0.32),
        0 0 28px rgba(218, 48, 181, 0.18);
}

.registro-submit:active {
    transform: translateY(0);
}

.registro-message {
    margin-bottom: 22px;
    padding: 14px 16px;

    border-radius: 14px;

    font-size: 0.92rem;
    line-height: 1.5;
}

.registro-error {
    border: 1px solid rgba(207, 54, 101, 0.25);
    background: rgba(207, 54, 101, 0.09);
    color: #8c284c;
}

.registro-success {
    border: 1px solid rgba(52, 157, 128, 0.25);
    background: rgba(52, 157, 128, 0.09);
    color: #236d5a;
}

@media (max-width: 700px) {

    .registro-page {
        padding: 45px 18px 70px;
    }

    .registro-card {
        padding: 30px 22px;
        border-radius: 24px;
    }

    .registro-header {
        margin-bottom: 26px;
    }

    .registro-header h1 {
        font-size: 2rem;
    }
}