/*
|--------------------------------------------------------------------------
| MEYTAM - REGISTER PÚBLICO
|--------------------------------------------------------------------------
*/

* {
    box-sizing: border-box;
}

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

body {
    min-height: 100vh;

    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    color: #ffffff;

    background: #07070b;

    -webkit-font-smoothing: antialiased;
}

button,
input {
    font: inherit;
}

button {
    -webkit-tap-highlight-color: transparent;
}


/*
|--------------------------------------------------------------------------
| PÁGINA
|--------------------------------------------------------------------------
*/

.register-page {
    position: relative;

    min-height: 100vh;

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

    padding: 32px 20px;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 50% -10%,
            rgba(124, 92, 255, 0.20),
            transparent 42%
        ),
        radial-gradient(
            circle at 100% 100%,
            rgba(168, 85, 247, 0.10),
            transparent 35%
        ),
        #07070b;
}


/*
|--------------------------------------------------------------------------
| DECORACIÓN
|--------------------------------------------------------------------------
*/

.register-page::before,
.register-page::after {
    content: "";

    position: absolute;

    width: 280px;
    height: 280px;

    border-radius: 50%;

    filter: blur(80px);

    pointer-events: none;
}

.register-page::before {
    top: -120px;
    left: -100px;

    background: rgba(124, 92, 255, 0.11);
}

.register-page::after {
    right: -120px;
    bottom: -120px;

    background: rgba(168, 85, 247, 0.09);
}


/*
|--------------------------------------------------------------------------
| TARJETA
|--------------------------------------------------------------------------
*/

.register-card {
    position: relative;

    z-index: 1;

    width: 100%;
    max-width: 430px;

    padding: 40px;

    border: 1px solid rgba(255, 255, 255, 0.09);

    border-radius: 24px;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.055),
            rgba(255, 255, 255, 0.018)
        ),
        rgba(18, 18, 27, 0.88);

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

    box-shadow:
        0 30px 90px rgba(0, 0, 0, 0.55),
        0 10px 35px rgba(0, 0, 0, 0.20),
        inset 0 1px 0 rgba(255, 255, 255, 0.045);
}


/*
|--------------------------------------------------------------------------
| MARCA
|--------------------------------------------------------------------------
*/

.register-brand {
    text-align: center;

    margin-bottom: 30px;
}

.register-logo-image {
    display: block;

    width: 52px;
    max-width: 25%;

    height: auto;

    margin: 0 auto 16px;

    object-fit: contain;

    opacity: 0.88;
}

.register-brand h1 {
    margin: 0;

    color: #ffffff;

    font-size: 27px;

    line-height: 1.2;

    font-weight: 700;

    letter-spacing: -0.5px;
}

.register-brand p {
    margin: 9px 0 0;

    color: #a7a7b5;

    font-size: 14px;

    line-height: 1.5;
}


/*
|--------------------------------------------------------------------------
| MENSAJES
|--------------------------------------------------------------------------
*/

.register-error,
.register-success {
    margin-bottom: 20px;

    padding: 12px 14px;

    border-radius: 11px;

    font-size: 13px;

    line-height: 1.45;
}

.register-error {
    border: 1px solid rgba(239, 68, 68, 0.28);

    background: rgba(239, 68, 68, 0.09);

    color: #ff9b9b;
}

.register-success {
    border: 1px solid rgba(34, 197, 94, 0.28);

    background: rgba(34, 197, 94, 0.08);

    color: #8be0a7;
}


/*
|--------------------------------------------------------------------------
| FORMULARIO
|--------------------------------------------------------------------------
*/

.register-form {
    display: flex;

    flex-direction: column;

    gap: 17px;
}

.register-field {
    display: flex;

    flex-direction: column;

    gap: 8px;
}

.register-field label {
    color: #e7e7ee;

    font-size: 13px;

    font-weight: 600;
}

.register-field input {
    width: 100%;

    height: 49px;

    padding: 0 14px;

    border: 1px solid rgba(255, 255, 255, 0.10);

    border-radius: 10px;

    outline: none;

    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.045),
            rgba(255, 255, 255, 0.025)
        );

    color: #ffffff;

    font-size: 14px;

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.025);

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

.register-field input::placeholder {
    color: #777786;
}

.register-field input:hover {
    border-color: rgba(255, 255, 255, 0.17);
}

.register-field input:focus {
    border-color: rgba(124, 92, 255, 0.75);

    background:
        linear-gradient(
            180deg,
            rgba(124, 92, 255, 0.07),
            rgba(124, 92, 255, 0.035)
        );

    box-shadow:
        0 0 0 3px rgba(124, 92, 255, 0.12),
        0 8px 25px rgba(0, 0, 0, 0.16);
}


/*
|--------------------------------------------------------------------------
| CONTRASEÑA
|--------------------------------------------------------------------------
*/

.register-password-wrap {
    position: relative;
}

.register-password-wrap input {
    padding-right: 80px;
}

.register-password-toggle {
    position: absolute;

    top: 50%;
    right: 8px;

    transform: translateY(-50%);

    min-width: 62px;

    height: 30px;

    padding: 0 7px;

    border: 0;

    border-radius: 7px;

    background: transparent;

    color: #a7a7b5;

    font-size: 12px;

    font-weight: 600;

    cursor: pointer;

    transition:
        color 0.2s ease,
        background 0.2s ease;
}

.register-password-toggle:hover {
    color: #ffffff;

    background: rgba(255, 255, 255, 0.06);
}


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

.register-submit {
    align-self: center;

    width: auto;

    min-width: 165px;

    height: 50px;

    margin-top: 5px;

    padding: 0 27px;

    border: 0;

    border-radius: 11px;

    background:
        linear-gradient(
            135deg,
            #7c5cff,
            #a855f7
        );

    color: #ffffff;

    font-size: 14px;

    font-weight: 700;

    cursor: pointer;

    box-shadow:
        0 12px 28px rgba(124, 92, 255, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);

    transition:
        transform 0.18s ease,
        filter 0.18s ease,
        box-shadow 0.18s ease,
        opacity 0.18s ease;
}

.register-submit:hover {
    transform: translateY(-1px);

    filter: brightness(1.07);

    box-shadow:
        0 16px 35px rgba(124, 92, 255, 0.30),
        inset 0 1px 0 rgba(255, 255, 255, 0.20);
}

.register-submit:active {
    transform: translateY(0);
}

.register-submit:disabled {
    opacity: 0.55;

    cursor: wait;

    transform: none;

    filter: none;
}


/*
|--------------------------------------------------------------------------
| LOGIN
|--------------------------------------------------------------------------
*/

.register-login {
    display: flex;

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

    gap: 6px;

    margin-top: 23px;

    color: #777786;

    font-size: 13px;

    line-height: 1.5;

    text-align: center;
}

.register-login a {
    color: #b9a9ff;

    font-weight: 600;

    text-decoration: none;

    transition:
        color 0.2s ease;
}

.register-login a:hover {
    color: #ffffff;
}


/*
|--------------------------------------------------------------------------
| PIE
|--------------------------------------------------------------------------
*/

.register-footer {
    margin-top: 21px;

    padding-top: 19px;

    border-top: 1px solid rgba(255, 255, 255, 0.06);

    text-align: center;
}

.register-footer a {
    color: #777786;

    font-size: 13px;

    text-decoration: none;

    transition:
        color 0.2s ease;
}

.register-footer a:hover {
    color: #b9a9ff;
}


/*
|--------------------------------------------------------------------------
| RESPONSIVE
|--------------------------------------------------------------------------
*/

@media (max-width: 520px) {

    .register-page {
        padding: 20px 14px;
    }

    .register-card {
        padding: 32px 22px 29px;

        border-radius: 20px;
    }

    .register-logo-image {
        width: 48px;

        max-width: 24%;

        margin-bottom: 15px;
    }

    .register-brand {
        margin-bottom: 27px;
    }

    .register-brand h1 {
        font-size: 24px;
    }

    .register-brand p {
        font-size: 13px;
    }

    .register-submit {
        min-width: 155px;

        height: 49px;

        padding: 0 24px;
    }
}

@media (max-width: 360px) {

    .register-card {
        padding: 27px 18px;
    }

    .register-logo-image {
        width: 44px;

        max-width: 22%;
    }

    .register-brand h1 {
        font-size: 22px;
    }

    .register-login {
        flex-direction: column;

        gap: 2px;
    }

    .register-submit {
        min-width: 145px;

        padding: 0 22px;
    }
}


/*
|--------------------------------------------------------------------------
| REDUCIR ANIMACIONES
|--------------------------------------------------------------------------
*/

@media (prefers-reduced-motion: reduce) {

    *,
    *::before {
        transition-duration: 0.01ms !important;

        animation-duration: 0.01ms !important;
    }
}