/*
|--------------------------------------------------------------------------
| MEYTAM - LOGIN 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:
        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;

    -webkit-font-smoothing: antialiased;
}

button,
input {
    font: inherit;
}

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


/*
|--------------------------------------------------------------------------
| CONTENEDOR
|--------------------------------------------------------------------------
*/

.login-page {
    position: relative;

    min-height: 100vh;

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

    padding: 32px 20px;

    overflow: hidden;
}


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

.login-page::before {
    content: "";

    position: absolute;

    width: 340px;
    height: 340px;

    top: -170px;
    left: 50%;

    transform: translateX(-50%);

    border-radius: 50%;

    background: rgba(124, 92, 255, 0.12);

    filter: blur(100px);

    pointer-events: none;
}

.login-page::after {
    content: "";

    position: absolute;

    width: 300px;
    height: 300px;

    right: -150px;
    bottom: -150px;

    border-radius: 50%;

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

    filter: blur(90px);

    pointer-events: none;
}


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

.login-card {
    position: relative;

    z-index: 2;

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

    padding: 42px 40px 34px;

    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.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.045);
}


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

.login-brand {
    text-align: center;

    margin-bottom: 34px;
}

.login-logo-image {
    display: block;

    width: 120px;
    max-width: 45%;

    height: auto;

    margin: 0 auto 24px;

    object-fit: contain;

    filter:
        drop-shadow(
            0 8px 20px rgba(124, 92, 255, 0.18)
        );
}

.login-brand h1 {
    margin: 0;

    color: #ffffff;

    font-size: 28px;
    line-height: 1.2;

    font-weight: 700;

    letter-spacing: -0.5px;
}

.login-brand p {
    margin: 10px 0 0;

    color: #a7a7b5;

    font-size: 14px;

    line-height: 1.5;
}


/*
|--------------------------------------------------------------------------
| ERROR
|--------------------------------------------------------------------------
*/

.login-error {
    margin-bottom: 20px;

    padding: 13px 15px;

    border: 1px solid rgba(239, 68, 68, 0.28);

    border-radius: 12px;

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

    color: #ff9b9b;

    font-size: 13px;

    line-height: 1.45;
}


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

.login-form {
    display: flex;

    flex-direction: column;

    gap: 21px;
}

.login-field {
    display: flex;

    flex-direction: column;

    gap: 9px;
}

.login-field label {
    color: #e7e7ee;

    font-size: 13px;

    font-weight: 600;
}

.login-field input {
    width: 100%;

    height: 52px;

    padding: 0 15px;

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

    border-radius: 12px;

    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;
}

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

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

.login-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),
        inset 0 1px 0 rgba(255, 255, 255, 0.035);
}


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

.password-wrap {
    position: relative;
}

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

.password-toggle {
    position: absolute;

    top: 50%;
    right: 10px;

    transform: translateY(-50%);

    min-width: 62px;

    height: 32px;

    padding: 0 8px;

    border: 0;

    border-radius: 7px;

    background: transparent;

    color: #a7a7b5;

    cursor: pointer;

    font-size: 12px;

    font-weight: 600;

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

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

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


/*
|--------------------------------------------------------------------------
| BOTÓN INICIAR SESIÓN
|--------------------------------------------------------------------------
*/

.login-submit {
    display: inline-flex;

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

    align-self: center;

    width: auto;

    min-width: 170px;

    height: 52px;

    margin-top: 4px;

    padding: 0 28px;

    border: 0;

    border-radius: 12px;

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

    color: #ffffff;

    font-size: 14px;

    font-weight: 700;

    letter-spacing: 0.1px;

    cursor: pointer;

    box-shadow:
        0 12px 30px rgba(124, 92, 255, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.20);

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

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

    filter: brightness(1.07);

    box-shadow:
        0 17px 40px rgba(124, 92, 255, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

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

    box-shadow:
        0 8px 20px rgba(124, 92, 255, 0.22);
}

.login-submit:disabled {
    opacity: 0.60;

    cursor: wait;

    transform: none;

    filter: none;
}


/*
|--------------------------------------------------------------------------
| REGISTRO
|--------------------------------------------------------------------------
*/

.login-register {
    display: flex;

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

    gap: 6px;

    margin-top: 24px;

    color: #777786;

    font-size: 13px;

    line-height: 1.5;

    text-align: center;
}

.login-register a {
    color: #b9a9ff;

    font-weight: 600;

    text-decoration: none;

    transition:
        color 0.2s ease;
}

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


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

.login-footer {
    margin-top: 24px;

    padding-top: 20px;

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

    text-align: center;
}

.login-footer a {
    color: #777786;

    text-decoration: none;

    font-size: 13px;

    transition:
        color 0.2s ease;
}

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


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

@media (max-width: 520px) {

    .login-page {
        padding: 22px 15px;
    }

    .login-card {
        max-width: 100%;

        padding: 34px 22px 30px;

        border-radius: 20px;
    }

    .login-brand {
        margin-bottom: 29px;
    }

    .login-logo-image {
        width: 105px;

        max-width: 50%;

        margin-bottom: 21px;
    }

    .login-brand h1 {
        font-size: 25px;
    }

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

    .login-submit {
        min-width: 160px;

        height: 50px;

        padding: 0 24px;
    }

    .login-register {
        margin-top: 22px;
    }
}

@media (max-width: 360px) {

    .login-card {
        padding: 28px 18px;
    }

    .login-logo-image {
        width: 95px;
    }

    .login-brand h1 {
        font-size: 23px;
    }

    .login-submit {
        min-width: 150px;

        padding: 0 22px;
    }

    .login-register {
        flex-direction: column;

        gap: 2px;
    }
}