/* #region Ocultar Navbar y Footer */
.navbar {
    display: none;
}

.cta-final {
    display: none;
}
/* #endregion */

/* #region Configuración General */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

html, body {
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background-color: var(--bg-main);
    background-image: var(--auth-bg-gradient);
    background-attachment: fixed;
    background-size: 200% 200%;
    animation: liquidMove 10s ease-in-out infinite alternate;
}

@keyframes liquidMove {
    0% {
        background-position: 0% 0%;
    }

    33% {
        background-position: 100% 10%;
    }

    66% {
        background-position: 20% 90%;
    }

    100% {
        background-position: 80% 50%;
    }
}
/* #endregion */

/* #region Contenedor de Cristal */
.form {
    width: 100%;
    max-width: 520px;
    background: var(--glass-surface);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-main);
    border-radius: 25px;
    box-shadow: var(--shadow-standard);
    color: var(--text-main);
    padding: 50px 40px;
    text-align: center;
    animation: fadeInScale 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

    .form h1 {
        font-size: 36px;
        margin-bottom: 35px;
        font-weight: 700;
        letter-spacing: -1px;
        text-shadow: 0 4px 10px rgba(0,0,0,0.2);
    }
/* #endregion */

/* #region Inputs */
.container-translucid {
    position: relative;
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    transition: var(--transicion-suave);
    border-radius: 50px;
    overflow: hidden;
}

    .container-translucid input {
        width: 100%;
        background: var(--input-surface);
        border: 1px solid var(--border-main);
        border-radius: 50px;
        padding: 14px 55px 14px 25px;
        font-size: 16px;
        color: var(--text-main);
        caret-color: var(--text-main);
        outline: none;
        transition: all 0.4s ease;
    }

        .container-translucid input::placeholder {
            color: rgba(var(--text-main-rgb), 0.6);
        }

        .container-translucid input:focus {
            background: var(--input-surface);
            border-color: var(--accent-main);
            box-shadow: 0 0 0 0.14rem rgba(var(--accent-main-rgb), 0.14);
            transform: none;
        }

    .container-translucid i {
        position: absolute;
        right: 22px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 18px;
        color: rgba(var(--text-main-rgb), 0.7);
        pointer-events: none;
        transition: all 0.4s ease;
    }

    .container-translucid input:focus + i {
        color: var(--accent-main);
        transform: none;
    }

    .container-translucid input:-webkit-autofill,
    .container-translucid input:-webkit-autofill:hover,
    .container-translucid input:-webkit-autofill:focus,
    .container-translucid input:-webkit-autofill:active {
        -webkit-text-fill-color: var(--text-main) !important;
        -webkit-box-shadow: 0 0 0 1000px var(--input-surface) inset !important;
        box-shadow: 0 0 0 1000px var(--input-surface) inset !important;
        transition: background-color 9999s ease-in-out 0s;
        caret-color: var(--text-main) !important;
    }
/* #endregion */

/* #region Botón Principal */
#button {
    width: 100%;
    background-color: var(--accent-main, #d3ab80);
    color: var(--bg-main, #1a0f0e);
    border: none;
    padding: 16px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    margin-top: 15px;
}

    #button:hover {
        background-color: var(--text-main, #ece4da);
        transform: translateY(-4px);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
        color: var(--bg-main, #1a0f0e);
    }

    #button:active {
        transform: scale(0.95);
    }
/* #endregion */

/* #region Links */
#forgot-password {
    color: var(--text-main);
    text-decoration: none;
    transition: 0.3s;
    font-weight: 500;
}

    #forgot-password:hover, #register:hover {
        color: var(--accent-main);
    }

    #forgot-password:active, #register:active {
        transform: scale(0.95);
    }

.register {
    margin-top: 20px;
    text-align: center;
}

    .register a {
        color: var(--text-main);
        text-decoration: none;
    }
/* #endregion */

/* #region Feedback */
.form-description {
    text-align: center;
    color: var(--text-main);
    margin-bottom: 20px;
}

.feedback-success {
    color: var(--feedback-success);
    text-align: center;
    font-weight: bold;
    margin-bottom: 10px;
}

.feedback-error {
    color: var(--danger-main);
    text-align: center;
    font-weight: bold;
    margin-bottom: 10px;
}

#error-message {
    color: var(--danger-main);
}

.hidden-feedback {
    display: none !important;
}
/* #endregion */

/* #region Responsivo */
@media (max-width: 600px) {
    .form {
        padding: 40px 25px;
        border-radius: 30px;
    }

        .form h1 {
            font-size: 28px;
        }

    .container {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    #button {
        padding: 18px;
        font-size: 16px;
    }

    .container-translucid input:focus {
        transform: none;
        border-width: 2px;
    }
}
/* #endregion */

/* #region Animaciones de Carga */
.form section {
    animation: fadeInScale 0.5s ease backwards;
}

    .form section:nth-child(2) {
        animation-delay: 0.1s;
    }

    .form section:nth-child(3) {
        animation-delay: 0.2s;
    }

    .form section:nth-child(4) {
        animation-delay: 0.3s;
    }
/* #endregion */
