body {
    font-family: "Segoe UI", sans-serif !important;
    background-color: #295669;
    background-image: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2));
    background-repeat: repeat;
    background-size: 40px 40px;
    min-height: 100vh;
    transition: background 0.5s ease-in-out;
    overflow-x: hidden;
    animation: movePattern 30s linear infinite;
}
@keyframes movePattern {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 40px 40px;
    }
}
#particles-js::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.15); /* capa de oscurecimiento */
    top: 0;
    left: 0;
    z-index: 0;
}
#container_demo {
    text-align: left;
    margin: 0;
    padding: 0;
    margin: 0 auto;
}
a.hiddenanchor {
    display: none;
}
#wrapper {
    max-width: 500px;
    width: 90%;
    min-height: 500px;
    margin: 0 auto;
    position: relative;
    margin: 80px auto !important;
}

#wrapper a {
    color: rgb(95, 155, 198);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

#wrapper a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;
    background: rgb(95, 155, 198);
    opacity: 0;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

#wrapper a:hover {
    color: rgb(135, 196, 241);
}

#wrapper a:hover::after {
    opacity: 1;
    transform: scaleX(1);
}

#wrapper h1 {
    font-size: 48px;
    color: rgb(6, 106, 117);
    padding: 2px 0 10px 0;
    font-family: "sans-serif";
    font-weight: bold;
    text-align: center;
    padding-bottom: 30px;
}
#wrapper h1 {
    background: -webkit-repeating-linear-gradient(
        -45deg,
        rgb(18, 83, 93),
        rgb(18, 83, 93) 20px,
        rgb(64, 111, 118) 20px,
        rgb(64, 111, 118) 40px,
        rgb(18, 83, 93) 40px
    );
    -webkit-text-fill-color: transparent;
    -webkit-background-clip: text;
}
#wrapper h1:after {
    content: " ";
    display: block;
    width: 100%;
    height: 2px;
    margin-top: 10px;
    background: -moz-linear-gradient(
        left,
        rgba(147, 184, 189, 0) 0%,
        rgba(147, 184, 189, 0.8) 20%,
        rgba(147, 184, 189, 1) 53%,
        rgba(147, 184, 189, 0.8) 79%,
        rgba(147, 184, 189, 0) 100%
    );
    background: -webkit-gradient(
        linear,
        left top,
        right top,
        color-stop(0%, rgba(147, 184, 189, 0)),
        color-stop(20%, rgba(147, 184, 189, 0.8)),
        color-stop(53%, rgba(147, 184, 189, 1)),
        color-stop(79%, rgba(147, 184, 189, 0.8)),
        color-stop(100%, rgba(147, 184, 189, 0))
    );
    background: -webkit-linear-gradient(
        left,
        rgba(147, 184, 189, 0) 0%,
        rgba(147, 184, 189, 0.8) 20%,
        rgba(147, 184, 189, 1) 53%,
        rgba(147, 184, 189, 0.8) 79%,
        rgba(147, 184, 189, 0) 100%
    );
    background: -o-linear-gradient(
        left,
        rgba(147, 184, 189, 0) 0%,
        rgba(147, 184, 189, 0.8) 20%,
        rgba(147, 184, 189, 1) 53%,
        rgba(147, 184, 189, 0.8) 79%,
        rgba(147, 184, 189, 0) 100%
    );
    background: -ms-linear-gradient(
        left,
        rgba(147, 184, 189, 0) 0%,
        rgba(147, 184, 189, 0.8) 20%,
        rgba(147, 184, 189, 1) 53%,
        rgba(147, 184, 189, 0.8) 79%,
        rgba(147, 184, 189, 0) 100%
    );
    background: linear-gradient(
        left,
        rgba(147, 184, 189, 0) 0%,
        rgba(147, 184, 189, 0.8) 20%,
        rgba(147, 184, 189, 1) 53%,
        rgba(147, 184, 189, 0.8) 79%,
        rgba(147, 184, 189, 0) 100%
    );
}
label[data-icon="e"]::before {
    content: "\f0e0";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    padding-right: 10px;
}
label[data-icon="f"]::before {
    content: "\f007";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    padding-right: 10px;
}
label[data-icon="l"]::before {
    content: "\f2c6";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    padding-right: 10px;
}
#wrapper p:first-child {
    margin: 0px;
}
#wrapper label {
    color: rgb(0, 0, 0);
    font-weight: bold;
    position: relative;
}
.gender-checkbox {
    display: none;
}
.gender-checkbox + label {
    position: relative;
    padding-left: 30px;
    margin-right: 20px;
    cursor: pointer;
    font-size: 16px;
    display: inline-block;
    font-weight: normal;
}
.gender-checkbox + label:before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 15px;
    height: 15px;
    border: 2px solid #32917c;
    border-radius: 50%;
    background-color: white;
    transition: all 0.3s ease;
}
.gender-checkbox:checked + label:before {
    background-color: #2b9e98;
    border-color: #2b9e98;
}
.gender-checkbox:checked + label:after {
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: white;
}
.gender-options {
    text-align: center;
}
label[for="gender"] {
    display: block;
    text-align: left;
}
::-webkit-input-placeholder {
    color: rgb(190, 188, 188);
    font-style: italic;
}
input:-moz-placeholder,
textarea:-moz-placeholder {
    color: rgb(190, 188, 188);
    font-style: italic;
}
input {
    outline: none;
}
#wrapper input:not([type="checkbox"]) {
    width: 100%;
    max-width: 450px;
    margin: 8px auto;
    display: block;
    padding: 10px 10px 10px 35px;
    border: 1px solid #b2b2b2;
    border-radius: 6px;
    font-size: 16px;
    background-color: #fff;
    box-shadow: inset 0 1px 4px rgba(168, 168, 168, 0.6);
    transition: all 0.2s ease-in-out;
    box-sizing: border-box;
}
#wrapper input:not([type="checkbox"]):focus {
    border-color: #3d9db3;
    box-shadow: 0 0 6px rgba(61, 157, 179, 0.5),
        inset 0 1px 4px rgba(168, 168, 168, 0.6);
    outline: none;
}
#wrapper input:not([type="checkbox"]):active,
#wrapper input:not([type="checkbox"]):focus {
    border: 1px solid rgba(91, 90, 90, 0.7);
    background: rgba(238, 236, 240, 0.2);
    -webkit-box-shadow: 0px 1px 4px 0px rgba(168, 168, 168, 0.9) inset;
    -moz-box-shadow: 0px 1px 4px 0px rgba(168, 168, 168, 0.9) inset;
    box-shadow: 0px 1px 4px 0px rgba(168, 168, 168, 0.9) inset;
}
[data-icon]:after {
    content: attr(data-icon);
    font-family: "FontomasCustomRegular";
    color: rgb(106, 159, 171);
    position: absolute;
    left: 10px;
    top: 35px;
    width: 30px;
}
#wrapper p.button input {
    width: 40%;
    cursor: pointer;
    background: linear-gradient(145deg, #74d3e9, #2e7f92);
    padding: 10px 5px;
    font-family: "Segoe UI", sans-serif;
    color: #fff;
    font-size: 22px;
    border: none;
    margin-bottom: 10px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
    border-radius: 50px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2), 0 1px 3px rgba(0, 0, 0, 0.1),
        inset 0 -1px 2px rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease-in-out;
}

#wrapper p.button input:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3), 0 3px 6px rgba(0, 0, 0, 0.15),
        inset 0 -1px 2px rgba(255, 255, 255, 0.15);
    background: linear-gradient(145deg, #74d3e9, #2e7f92);
}

#wrapper p.button input:active,
#wrapper p.button input:focus {
    background: rgb(40, 137, 154);
    position: relative;
    top: 1px;
    border: 1px solid rgb(12, 76, 87);
    -webkit-box-shadow: 0px 1px 6px 4px rgba(0, 0, 0, 0.2) inset;
    -moz-box-shadow: 0px 1px 6px 4px rgba(0, 0, 0, 0.2) inset;
    box-shadow: 0px 1px 6px 4px rgba(0, 0, 0, 0.2) inset;
}
p.login.button,
p.signin.button {
    text-align: center;
}
.keeplogin {
    margin-top: -5px;
}
.keeplogin input,
.keeplogin label {
    display: inline-block;
    font-size: 12px;
    font-style: italic;
}
.keeplogin input#loginkeeping {
    margin-right: 5px;
}
.keeplogin label {
    width: 80%;
}
p.change_link {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    padding: 17px 15px 20px 15px;
    text-align: center;
    border-radius: 0 0 5px 5px;
    background: repeating-linear-gradient(
        -45deg,
        rgb(247, 247, 247),
        rgb(247, 247, 247) 15px,
        rgb(225, 234, 235) 15px,
        rgb(225, 234, 235) 30px
    );
    box-sizing: border-box;
}
#wrapper p.change_link a {
    display: inline-block;
    font-weight: bold;
    background: rgb(247, 248, 241);
    padding: 3px 8px;
    color: rgb(95, 155, 198);
    margin-left: 10px;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.4s ease;
}
#wrapper p.change_link a:hover {
    color: rgb(135, 196, 241);
    background: rgb(247, 247, 247);
}
#wrapper p.change_link a:active {
    position: relative;
    top: 1px;
}
#register,
#login,
#forgot {
    position: absolute;
    top: 0px;
    width: 88%;
    padding: 10px 6% 10px 6%;
    margin: 0 0 35px 0;
    background: rgb(247, 247, 247);
    -webkit-box-shadow: 0pt 2px 5px rgba(105, 108, 109, 0.7),
        0px 0px 8px 5px rgba(208, 223, 226, 0.4) inset;
    -moz-box-shadow: 0pt 2px 5px rgba(105, 108, 109, 0.7),
        0px 0px 8px 5px rgba(208, 223, 226, 0.4) inset;
    box-shadow: 0pt 2px 5px rgb(0 0 0 / 70%),
        0px 0px 8px 5px rgb(0 0 0 / 40%) inset;
    -webkit-box-shadow: 5px;
    -moz-border-radius: 5px;
    border-radius: 30px;
}
@media (max-width: 600px) {
    #register,
    #login,
    #forgot {
        width: 95% !important;
        padding: 10px 4% 10px 4% !important;
        top: 10px !important;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4),
            0 0 6px 3px rgba(0, 0, 0, 0.2) inset !important;
        border-radius: 20px !important;
    }
}

#register {
    z-index: 21;
    opacity: 0;
}
#forgot {
    z-index: 21;
    opacity: 0;
}
#login {
    z-index: 22;
}
#toregister:target ~ #wrapper #register,
#tologin:target ~ #wrapper #login,
#toforgot:target ~ #wrapper #forgot {
    z-index: 22;
    -webkit-animation-name: fadeInLeft;
    -moz-animation-name: fadeInLeft;
    -ms-animation-name: fadeInLeft;
    -o-animation-name: fadeInLeft;
    animation-name: fadeInLeft;
    -webkit-animation-delay: 0.1s;
    -moz-animation-delay: 0.1s;
    -o-animation-delay: 0.1s;
    -ms-animation-delay: 0.1s;
    animation-delay: 0.1s;
}
#toregister:target ~ #wrapper #login,
#tologin:target ~ #wrapper #register,
#tologin:target ~ #wrapper #forgot,
#toforgot:target ~ #wrapper #login {
    -webkit-animation-name: fadeOutLeftBig;
    -moz-animation-name: fadeOutLeftBig;
    -ms-animation-name: fadeOutLeftBig;
    -o-animation-name: fadeOutLeftBig;
    animation-name: fadeOutLeftBig;
}
.animate {
    -webkit-animation-duration: 1s;
    -webkit-animation-timing-function: ease;
    -webkit-animation-fill-mode: both;

    -moz-animation-duration: 1s;
    -moz-animation-timing-function: ease;
    -moz-animation-fill-mode: both;

    -o-animation-duration: 1s;
    -o-animation-timing-function: ease;
    -o-animation-fill-mode: both;

    -ms-animation-duration: 1s;
    -ms-animation-timing-function: ease;
    -ms-animation-fill-mode: both;

    animation-duration: 1s;
    animation-timing-function: ease;
    animation-fill-mode: both;
}
.lt8 #wrapper input {
    padding: 10px 5px 10px 32px;
    width: 92%;
}
.lt8 #wrapper input[type="checkbox"] {
    width: 10px;
    padding: 0;
}
.lt8 #wrapper h1 {
    color: #066a75;
}
.lt8 #register {
    display: none;
}
.lt8 p.change_link,
.ie9 p.change_link {
    position: absolute;
    height: 90px;
    background: transparent;
}

/* Modern login/register refresh */
:root {
    --rp-bg: #f5f7fb;
    --rp-card: rgba(255, 255, 255, 0.92);
    --rp-text: #14222f;
    --rp-muted: #6b7a89;
    --rp-border: #dfe7ef;
    --rp-primary: #11a39c;
    --rp-primary-dark: #08746f;
    --rp-primary-soft: rgba(17, 163, 156, 0.14);
    --rp-accent: #6d5dfc;
    --rp-shadow: 0 28px 80px rgba(7, 20, 36, 0.22);
}

body {
    min-height: 100vh;
    background: #071424 !important;
    color: var(--rp-text);
    font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif !important;
    animation: none;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 18% 18%, rgba(17, 163, 156, 0.42), transparent 26rem),
        radial-gradient(circle at 86% 14%, rgba(109, 93, 252, 0.26), transparent 24rem),
        linear-gradient(135deg, #071424 0%, #102436 48%, #dff7f5 100%);
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: linear-gradient(135deg, rgba(0, 0, 0, 0.75), transparent 68%);
}

#tsparticles {
    opacity: 0.2;
}

.container {
    position: relative;
    z-index: 1;
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    min-height: 100svh;
    padding: clamp(4px, 1.6vh, 18px) 0 clamp(14px, 2.8vh, 34px);
    display: grid;
    grid-template-columns: minmax(260px, 0.95fr) minmax(320px, 500px);
    align-items: center;
    gap: clamp(24px, 5vw, 58px);
}

#container_demo {
    align-self: center;
    transform: translateY(-42px);
}

.logo-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 450px;
    align-self: center;
    gap: 20px;
    text-align: center;
    padding-top: 6px;
    transform: translateY(-42px);
}

.logo-container::before {
    display: none;
}

.logo-container::after {
    content: "Aquí cada interacción cuenta";
    position: static;
    order: 3;
    max-width: 390px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 20px;
    font-weight: 800;
    line-height: 1.5;
}

.logo {
    order: 1;
    width: min(245px, 62vw);
    filter: drop-shadow(0 24px 42px rgba(0, 0, 0, 0.25));
    transform: none;
}

#container_demo {
    width: 100%;
}

#wrapper {
    width: 100%;
    max-width: 500px;
    min-height: 500px;
    margin: 0 auto !important;
}

#toregister:target ~ #wrapper {
    max-width: 760px;
    min-height: 680px;
}

#toforgot:target ~ #wrapper {
    min-height: 500px;
}

#register,
#login,
#forgot {
    width: 100%;
    padding: 28px;
    margin: 0;
    background: var(--rp-card);
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 28px;
    box-shadow: var(--rp-shadow);
    backdrop-filter: blur(20px);
    box-sizing: border-box;
}

#register form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 16px;
    row-gap: 10px;
}

#register h2,
#register hr,
#register .row.g-2,
#register .terms-text,
#register .change_link,
#register .signin.button,
#register #password-strength,
#register #strength-text,
#register label[for="gender"] {
    grid-column: 1 / -1;
}

#register p,
#register > form > div {
    margin: 0;
}

#register .register-password-field,
#register .register-confirm-field {
    position: relative;
}

#register p.signin.button {
    margin-top: 8px;
}

#register p.signin.button input {
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
}

#register .terms-text {
    margin: 4px 0 0 !important;
}

#register p.change_link {
    margin-top: 6px;
}

#register .row.g-2 {
    justify-content: center;
}

#register .register-inline-fields {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

#register .field-with-icon {
    position: relative;
}

#register .field-with-icon i {
    position: absolute;
    left: 12px;
    top: 43px;
    color: #667887;
    pointer-events: none;
    z-index: 1;
}

#register .field-with-icon input,
#register .field-with-icon select {
    width: 100%;
    height: 48px;
    margin: 7px 0 0;
    padding: 11px 14px 11px 40px;
    border: 1px solid var(--rp-border);
    border-radius: 16px;
    background: #f8fbfd;
    color: var(--rp-text);
    font-size: 15px;
    box-shadow: none;
    box-sizing: border-box;
}

#register .field-with-icon select {
    appearance: auto;
}

#register p:has(#passwordsignup),
#register p:has(#confirm_password) {
    grid-column: auto;
}

#register .register-password-field {
    grid-column: 1 / 2;
}

#register .register-confirm-field {
    grid-column: 2 / 3;
}

#register p:has(#passwordsignup) {
    margin-bottom: 0;
}

#register p:has(#confirm_password) {
    margin-top: 0;
}

#register p:has(#passwordsignup) input,
#register p:has(#confirm_password) input,
#register .register-password-field input,
#register .register-confirm-field input {
    width: 100%;
}

#register label[for="gender"] {
    margin-top: 2px;
    margin-bottom: 0;
}

#register .row.g-2 {
    justify-content: flex-start;
    gap: 8px;
    margin: 4px 0 6px;
}

#register .row.g-2 > [class*="col-"] {
    width: auto;
    padding-left: 0;
    padding-right: 0;
}

#register .form-check {
    min-width: auto;
    width: auto;
    min-height: 38px;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center;
    gap: 8px;
    padding: 7px 12px;
}

#register .form-check-label {
    font-size: 13px;
    line-height: 1;
}

#register .form-check-input {
    margin: 0 !important;
}

#login {
    min-height: auto;
}

.title,
#wrapper h1,
#wrapper h2 {
    color: var(--rp-text);
    font-size: clamp(34px, 5vw, 48px);
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0;
    text-align: center;
    margin: 4px 0 22px;
    background: linear-gradient(135deg, var(--rp-primary-dark), var(--rp-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

#wrapper h1::after,
#wrapper h1:after {
    display: none;
}

#wrapper label {
    color: var(--rp-text);
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 4px;
}

#wrapper p {
    margin-bottom: 14px;
}

#wrapper input:not([type="checkbox"]) {
    max-width: none;
    height: 48px;
    margin: 7px 0 0;
    padding: 11px 42px;
    border: 1px solid var(--rp-border);
    border-radius: 16px;
    background: #f8fbfd;
    color: var(--rp-text);
    font-size: 15px;
    box-shadow: none;
}

#wrapper input:not([type="checkbox"]):focus,
#wrapper input:not([type="checkbox"]):active {
    border-color: rgba(17, 163, 156, 0.76);
    background: #ffffff;
    box-shadow: 0 0 0 4px var(--rp-primary-soft) !important;
}

#wrapper p.button input {
    width: 100%;
    height: 50px;
    padding: 10px 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--rp-primary), #23c5bb);
    color: #ffffff;
    font-size: 17px;
    font-weight: 850;
    text-shadow: none;
    box-shadow: 0 14px 28px rgba(17, 163, 156, 0.28);
}

#wrapper p.button input:hover {
    background: linear-gradient(135deg, #0f918b, #20b7ae);
    transform: translateY(-1px);
    box-shadow: 0 18px 34px rgba(17, 163, 156, 0.32);
}

#wrapper a {
    color: var(--rp-primary-dark);
    font-weight: 800;
}

#wrapper a::after {
    background: var(--rp-primary);
}

p.change_link {
    max-width: none;
    margin: 18px 0 0;
    padding: 14px 16px;
    border: 1px solid rgba(17, 163, 156, 0.16);
    border-radius: 18px;
    background: var(--rp-primary-soft);
    color: var(--rp-text);
}

#wrapper p.change_link a {
    background: #ffffff;
    color: var(--rp-primary-dark);
    border-radius: 999px;
    padding: 7px 12px;
    box-shadow: 0 8px 18px rgba(20, 34, 47, 0.08);
}

.terms-text {
    padding: 12px 14px;
    border: 1px solid rgba(17, 163, 156, 0.16);
    border-radius: 18px;
    background: rgba(17, 163, 156, 0.08);
    color: var(--rp-text) !important;
    font-size: 13px;
    line-height: 1.45;
}

.terms-text a {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 6px 14px rgba(20, 34, 47, 0.08);
}

.row.g-2 {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 8px 0 12px;
}

.form-check {
    min-width: 110px;
    border: 1px solid var(--rp-border);
    border-radius: 14px;
    background: #f8fbfd;
    padding: 9px 12px;
}

.form-check-label {
    margin: 0;
}

#password-strength {
    background: #e5ebf0 !important;
    height: 9px !important;
    margin-top: 7px !important;
    margin-bottom: 4px !important;
    overflow: hidden;
}

#strength-bar {
    background: linear-gradient(135deg, var(--rp-primary), var(--rp-accent));
}

#strength-text {
    display: block;
    margin: 0 0 2px;
    font-size: 13px !important;
    line-height: 1.25;
}

#password-match-message {
    margin-top: 4px !important;
    line-height: 1.25;
}

.recovery-form {
    display: grid;
    gap: 12px;
}

.recovery-icon {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    margin: 0 auto 4px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(17, 163, 156, 0.16), rgba(99, 102, 241, 0.14));
    color: var(--rp-primary-dark);
    font-size: 24px;
    box-shadow: 0 14px 26px rgba(20, 34, 47, 0.09);
}

.recovery-copy {
    max-width: 390px;
    margin: -6px auto 4px !important;
    color: var(--rp-muted);
    font-size: 15px;
    line-height: 1.5;
    text-align: center;
}

.recovery-field {
    position: relative;
    display: grid;
    gap: 4px;
}

.recovery-field i {
    position: absolute;
    left: 15px;
    top: 41px;
    color: var(--rp-muted);
    pointer-events: none;
}

.recovery-field input {
    width: 100% !important;
}

.field-error {
    color: #ef4444;
    font-size: 13px;
    line-height: 1.35;
}

.recovery-errors {
    display: grid;
    gap: 6px;
    padding: 12px 14px;
    border: 1px solid rgba(239, 68, 68, 0.18);
    border-radius: 16px;
    background: rgba(239, 68, 68, 0.08);
    color: #b91c1c;
    font-size: 13px;
    line-height: 1.4;
}

.recovery-submit {
    margin: 4px 0 0 !important;
}

.recovery-link {
    margin-top: 4px !important;
    text-align: center;
}

.guest-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    min-height: 48px;
    margin: 10px 0 4px;
    border: 1px solid rgba(17, 163, 156, 0.24);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.74);
    color: var(--rp-primary-dark) !important;
    font-size: 15px;
    font-weight: 900;
    text-decoration: none !important;
    box-shadow: 0 12px 26px rgba(7, 20, 36, 0.08);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease,
        background-color 0.2s ease;
}

.guest-login-btn:hover,
.guest-login-btn:focus {
    border-color: rgba(17, 163, 156, 0.56);
    background: #ffffff;
    color: var(--rp-primary-dark) !important;
    transform: translateY(-1px);
    box-shadow: 0 16px 32px rgba(7, 20, 36, 0.12);
}

.guest-login-copy {
    margin: 4px 0 10px !important;
    color: var(--rp-muted);
    font-size: 13px;
    line-height: 1.35;
    text-align: center;
}

#forgot.recovery-card {
    min-height: auto;
}

#toforgot:target ~ #wrapper {
    max-width: 500px;
    min-height: 470px;
}

.reset-password-page .recovery-reset-container {
    grid-template-columns: minmax(260px, 0.95fr) minmax(320px, 500px);
}

.reset-password-page .reset-wrapper {
    min-height: 540px;
}

.reset-password-page .reset-card {
    position: relative !important;
    opacity: 1 !important;
    z-index: 22 !important;
    transform: none !important;
}

.reset-password-page .recovery-link a {
    display: inline-flex;
}

@media (max-width: 900px) {
    body {
        background: #071424 !important;
    }

    body::before {
        background:
            radial-gradient(circle at 50% 0%, rgba(17, 163, 156, 0.34), transparent 23rem),
            linear-gradient(180deg, #071424 0%, #102436 46%, #dff7f5 100%);
    }

    .container {
        display: block;
        min-height: auto;
        padding: 12px 0 30px;
    }

    .logo-container {
        min-height: 180px;
        margin-bottom: 12px;
        transform: none;
    }

    #container_demo {
        transform: none;
    }

    .logo-container::before,
    .logo-container::after {
        display: none;
    }

    .logo {
        width: 150px;
        transform: none;
    }

    #wrapper {
        min-height: 520px;
    }

    #toregister:target ~ #wrapper {
        max-width: 560px;
        min-height: 980px;
    }

    #register form {
        display: block;
    }

    #register p:has(#passwordsignup),
    #register p:has(#confirm_password),
    #register .register-password-field,
    #register .register-confirm-field {
        grid-column: 1 / -1;
    }

    #register p:has(#passwordsignup) {
        margin-bottom: -8px;
    }

    #register p:has(#confirm_password) {
        margin-top: -4px;
    }

    #register .register-inline-fields {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .reset-password-page .recovery-reset-container {
        display: block;
    }

    .reset-password-page .reset-wrapper {
        min-height: auto;
    }
}

@media (max-width: 600px) {
    .container {
        width: min(100% - 22px, 500px);
    }

    #register,
    #login,
    #forgot {
        width: 100% !important;
        padding: 20px !important;
        border-radius: 22px !important;
        top: 0 !important;
        box-shadow: 0 20px 55px rgba(7, 20, 36, 0.18) !important;
    }

    #wrapper {
        min-height: 540px;
    }

    #toregister:target ~ #wrapper {
        min-height: 1200px;
    }

    #toforgot:target ~ #wrapper {
        min-height: 500px;
    }

    .recovery-icon {
        width: 52px;
        height: 52px;
        border-radius: 18px;
        font-size: 22px;
    }

    .recovery-copy {
        font-size: 14px;
    }
}
